private Set < ModelDescription > scanBundleForModels ( Bundle bundle ) { Set < ModelDescription > models = new HashSet < ModelDescription > ( ) ; if ( ! shouldSkipBundle ( bundle ) ) { models = loadModelsOfBundle ( bundle ) ; } return models ; }
Check all found classes of the bundle if they are models and return a set of all found model descriptions .