LOGGER.error(property.getValue() + " is not valid value for property " + property.getName(), ex);
}
}
if (width < 1 || height < 1 || length < 1 || possibleSymbols.length() < 1) {
// this should be returned as a map, but this mechanism should be implemented in the plugin API first
throw new PluginConfigurationException(
"Can't apply configuration: Width, height, length and possible symbols properties should not be empty.");
}
service = new KaptchaPluginService(width, height, length, possibleSymbols);
pluginProperties = properties;
return new HashMap<>();