
DatastoreDefinition<DatastoreProperties> datastoreDefinition = definitionServiceDelegate.getDefinitionsMapByType(DatastoreDefinition.class).get(definitionName);
</BUG>
notNull(datastoreDefinition, "Could not find data store definition of name %s", definitionName);
<BUG>DatastoreProperties properties = getPropertiesFromJson(datastoreDefinition, formData);
DatasetProperties datasetProperties = datastoreDefinition.createDatasetProperties(properties);</BUG>
return datasetProperties == null ? "{}" : jsonSerializationHelper.toJson(formName, datasetProperties);
}
private static Exception handleErrors(Throwable throwable) {
if (throwable instanceof Error) {

throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, exception);
}
return new ResponseEntity<>(response, OK);
}
@Override
public String getDatasetProperties(String definitionName, String formName, PropertiesWithReferences propertiesContainer) {
DatastoreDefinition<DatastoreProperties> datastoreDefinition = propertiesHelpers.getDataStoreDefinition(definitionName);
notNull(datastoreDefinition, "Could not find data store definition of name %s", definitionName);
DatastoreProperties properties = propertiesHelpers.propertiesFromDto(propertiesContainer);
DatasetProperties datasetProperties = datastoreDefinition.createDatasetProperties(properties);
return datasetProperties == null ? "{}" : jsonSerializationHelper.toJson(formName, datasetProperties);
}
private static Exception handleErrors(Throwable throwable) {
if (throwable instanceof Error) {
