// Add properties
ManagedProperties hibernateProperties = (ManagedProperties) properties.getPropertyValue("hibernateProperties").getValue();
if (hibernateProperties != null) {
Properties configurationProperties = new Properties();
for (Map.Entry<?, ?> entry : hibernateProperties.entrySet()) {
TypedStringValue key = (TypedStringValue) entry.getKey();
TypedStringValue value = (TypedStringValue) entry.getValue();
configurationProperties.setProperty(key.getValue(), value.getValue());
}