private Set < URI > listEntitesWithModelReference ( URI entityType , URI modelReference ) { Set < URI > entities = ImmutableSet . of ( ) ; // Deal with services if ( entityType . toASCIIString ( ) . equals ( MSM . Service . getURI ( ) ) ) { entities = this . serviceManager . listServicesWithModelReference ( modelReference ) ; } else if ( entityType . toASCIIString ( ) . equals ( MSM . Operation . getURI ( ) ) ) { entities = this . serviceManager . listOperationsWithModelReference ( modelReference ) ; } return entities ; }
Generic implementation for finding all the Services or Operations that have one specific model reference .