if ( configurationState instanceof ConfigurationImpl ) {
ConfigurationImpl hibernateSpecificConfig = (ConfigurationImpl) configurationState;
if ( hibernateSpecificConfig.getProgrammaticMappings().size() > 0 ) {
metaDataProviders.add(
new ProgrammaticMappingMetaDataProvider(
constraintHelper,
hibernateSpecificConfig.getProgrammaticMappings()
)
);
}