tmodelKeysFound = FindTModelByPublisherQuery.select(em, null, publisher, tmodelKeysFound);
RegisteredInfo result = new RegisteredInfo();
// Sort and retrieve the final results
List<?> queryResults = FetchBusinessEntitiesQuery.select(em, new FindQualifiers(), businessKeysFound, null, null, null);
if (queryResults.size() > 0) {
result.setBusinessInfos(new org.uddi.api_v3.BusinessInfos());
for (Object item : queryResults) {
org.apache.juddi.model.BusinessEntity modelBusinessEntity = (org.apache.juddi.model.BusinessEntity)item;
org.uddi.api_v3.BusinessInfo apiBusinessInfo = new org.uddi.api_v3.BusinessInfo();
MappingModelToApi.mapBusinessInfo(modelBusinessEntity, apiBusinessInfo);
result.getBusinessInfos().getBusinessInfo().add(apiBusinessInfo);
}
}
// Sort and retrieve the final results
queryResults = FetchTModelsQuery.select(em, new FindQualifiers(), tmodelKeysFound, null, null, null);
if (queryResults.size() > 0) {
result.setTModelInfos(new org.uddi.api_v3.TModelInfos());
for (Object item : queryResults) {
org.apache.juddi.model.Tmodel modelTModel = (org.apache.juddi.model.Tmodel)item;