private void createMapping(final List<MapObjectType> mapObjectTypeList){
  for (  final EntityType entityType : exportedEntityTypes) {
    if (entityType != null) {
      final MapObjectType mapObjectType=new MapObjectType();
      mapObjectType.setIntId(entityType.getId());
      mapObjectType.setExtId(entityType.getId());
      final List<MapAttributeType> mapAttributeTypes=mapObjectType.getMapAttributeType();
      for (      final PropertyType propertyType : entityType.getAllPropertyTypes()) {
        final MapAttributeType mapAttributeType=new MapAttributeType();
        mapAttributeType.setExtId(propertyType.getId());
        mapAttributeType.setIntId(propertyType.getId());
        mapAttributeTypes.add(mapAttributeType);
      }
      mapObjectTypeList.add(mapObjectType);
    }
  }
  for (  final String typeId : exportedTypes) {
    final MapObjectType mapObjectType=new MapObjectType();
    mapObjectType.setIntId(typeId);
    mapObjectType.setExtId(typeId);
    mapObjectTypeList.add(mapObjectType);
  }
}

private void createMapping ( final List < MapObjectType > mapObjectTypeList ) { for ( final EntityType entityType : exportedEntityTypes ) { if ( entityType != null ) { final MapObjectType mapObjectType = new MapObjectType ( ) ; mapObjectType . setIntId ( entityType . getId ( ) ) ; mapObjectType . setExtId ( entityType . getId ( ) ) ; final List < MapAttributeType > mapAttributeTypes = mapObjectType . getMapAttributeType ( ) ; for ( final PropertyType propertyType : entityType . getAllPropertyTypes ( ) ) { final MapAttributeType mapAttributeType = new MapAttributeType ( ) ; mapAttributeType . setExtId ( propertyType . getId ( ) ) ; mapAttributeType . setIntId ( propertyType . getId ( ) ) ; mapAttributeTypes . add ( mapAttributeType ) ; } mapObjectTypeList . add ( mapObjectType ) ; } } for ( final String typeId : exportedTypes ) { final MapObjectType mapObjectType = new MapObjectType ( ) ; mapObjectType . setIntId ( typeId ) ; mapObjectType . setExtId ( typeId ) ; mapObjectTypeList . add ( mapObjectType ) ; } }
adds syncmapping for all entitytypes that have been exported . this is going to be an identity mapping .
