class AAIObjectMapper {

    public org.onap.aai.domain.yang.L3Network mapNetwork(L3Network l3Network) {
        if (modelMapper.getTypeMap(L3Network.class, org.onap.aai.domain.yang.L3Network.class) == null) {
            modelMapper.addMappings(new PropertyMap<L3Network, org.onap.aai.domain.yang.L3Network>() {
                @Override
                protected void configure() {
                    map().setModelCustomizationId(source.getModelInfoNetwork().getModelCustomizationUUID());
                    map().setModelInvariantId(source.getModelInfoNetwork().getModelInvariantUUID());
                    map().setModelVersionId(source.getModelInfoNetwork().getModelUUID());
                    map().setNetworkType(source.getModelInfoNetwork().getNetworkType());
                    map().setNetworkRole(source.getModelInfoNetwork().getNetworkRole());
                    map().setNetworkTechnology(source.getModelInfoNetwork().getNetworkTechnology());
                    modelMapper.addConverter(convertSubnets);
                    modelMapper.addConverter(convertCtagAssignments);
                    modelMapper.addConverter(convertSegmentationAssignments);
                }
            });
        }
        return modelMapper.map(l3Network, org.onap.aai.domain.yang.L3Network.class);
    }

}