question: protected List < ModelEntity > makeEntityModelToUseList ( ) throws GenericEntityException { List < GenericValue > entitySyncIncludes = entitySync . getRelated ( "EntitySyncInclude" , null , null , false ) ; List < GenericValue > entitySyncGroupIncludes = entitySync . getRelated ( "EntitySyncInclGrpDetailView" , null , null , false ) ; entitySyncIncludes . addAll ( entitySyncGroupIncludes ) ; List < ModelEntity > entityModelToUseList = EntityGroupUtil . getModelEntitiesFromRecords ( entitySyncIncludes , delegator , true ) ; if ( Debug . infoOn ( ) ) Debug . logInfo ( "In makeEntityModelToUseList for EntitySync with ID [" + entitySync . get ( "entitySyncId" ) + "] syncing " + entityModelToUseList . size ( ) + " entities" , module ) ; return entityModelToUseList ; }
target:  prepare a list of all entities we want to synchronize: remove all view-entities and all entities that don't match the patterns attached to this EntitySync 