List ses = new ArrayList();
for (Iterator it = endpoints.iterator(); it.hasNext();) {
ServiceEndpoint se = (ServiceEndpoint) it.next();
QName[] itfs = se.getInterfaces();
if (itfs == null && se instanceof InternalEndpointImpl) {
InternalEndpointImpl ie = (InternalEndpointImpl) se;
RegistryComponent component = JbiContainer.Factory.getInstance().getRegistry().getComponent(ie.getComponent());
Document doc = ((Component)component.getComponent()).getServiceDescription(ie);
ie.parseWsdl(doc);
itfs = se.getInterfaces();
}
if (itfs != null) {
for (int i = 0; i < itfs.length; i++) {
if (itfs[i].equals(interfaceName)) {