/** * Looks for a UPNP device service definition object for the given service ID * * @param serviceURI the ID of the service * @return A matching UPNPService object or null */ public UPNPService getServiceByID(String serviceID) { if (services == null) return null; if (log.isDebugEnabled()) log.debug("searching for service ID:" + serviceID); for (Iterator<UPNPService> itr = services.iterator(); itr.hasNext(); ) { UPNPService service = itr.next(); if (service.getServiceId().equals(serviceID)) { return service; } } return null; }