class AAIObjectMapper {

    public org.onap.aai.domain.yang.Configuration mapConfiguration(Configuration configuration) {
        if (null == modelMapper.getTypeMap(Configuration.class, org.onap.aai.domain.yang.Configuration.class)) {
            modelMapper.addMappings(new PropertyMap<Configuration, org.onap.aai.domain.yang.Configuration>() {
                @Override
                protected void configure() {
                    map().setModelCustomizationId(source.getModelInfoConfiguration().getModelCustomizationId());
                    map().setModelVersionId(source.getModelInfoConfiguration().getModelVersionId());
                    map().setModelInvariantId(source.getModelInfoConfiguration().getModelInvariantId());
                    map().setConfigurationType(source.getModelInfoConfiguration().getConfigurationType());
                    map().setConfigurationSubType(source.getModelInfoConfiguration().getConfigurationRole());
                    map().setConfigPolicyName(source.getModelInfoConfiguration().getPolicyName());
                    skip().setConfigurationRole(null);
                }
            });
        }
        return modelMapper.map(configuration, org.onap.aai.domain.yang.Configuration.class);
    }

}