*/
public Service getServiceForPort(Model model, QName thePortName) {
for(Iterator serviceIter = model.getServices();
serviceIter.hasNext();) {
Service nextService = (Service) serviceIter.next();
for(Iterator portIter = nextService.getPorts();
portIter.hasNext();) {
Port nextPort = (Port) portIter.next();
if( portsEqual(nextPort, thePortName) ) {
return nextService;