* @param propertyName the name of the property
* @param dataConfigPropertyName the data config property name
* @param value the value to set
*/
private void setProperty(String propertyName, String dataConfigPropertyName, Object value) {
ConfigProperty configProperty = CONFIG_PROPERTIES.get(dataConfigPropertyName);
Assert.state(configProperty != null, "Unsupported config property " + dataConfigPropertyName + " for "
+ propertyName);
if (!configProperty.isNullable()) {
Assert.notNull(value, propertyName + " cannot be null");
}
if (value != null) {
Assert.isInstanceOf(configProperty.getPropertyType(), value, "Unable to set " + propertyName + " ");
}
this.databaseConfig.setProperty(dataConfigPropertyName, value);
}