in src/main/java/com/epam/digital/data/platform/geoserver/service/LayersService.java [60:69]
private void createFeatureTypeForTable(String tableName, DataStoreResponse dataStore) {
var featureType = createDefaultFeatureTypeForTable(tableName, dataStore);
if (featureTypesClient
.getFeatureType(dataStore.getWorkspace().getName(), dataStore.getName(), tableName)
.isPresent()) {
featureTypesClient.update(dataStore.getWorkspace().getName(), tableName, featureType);
} else {
featureTypesClient.create(dataStore.getWorkspace().getName(), featureType);
}
}