public List < ModelServiceInstance > queryModelInstances ( ServiceInstanceQuery query ) { List < StringCommand > commands = new ArrayList < StringCommand > ( query . getCriteria ( ) . size ( ) ) ; for ( QueryCriterion q : query . getCriteria ( ) ) { commands . add ( ( StringCommand ) q ) ; } List < ModelServiceInstance > instances = getDirectoryServiceClient ( ) . queryService ( commands ) ; return instances ; }
Query the ModelServiceInstance .