ConfigurationDefinition pluginConfigDef = getPluginConfigurationDefinitionForResourceType(overlord, resource
.getResourceType().getId());
List<String> validationErrors = ConfigurationUtility.validateConfiguration(newPluginConfiguration,
existingPluginConfiguration, pluginConfigDef);
if (!validationErrors.isEmpty()) {
throw new BadArgumentException("Invalid newPluginConfiguration, configuration not updated: "
+ validationErrors);
}
// create our new update request and assign it to our resource - its status will initially be "in progress"
PluginConfigurationUpdate update = new PluginConfigurationUpdate(resource, newPluginConfiguration,