Description desc = descElement.toComponent();
// Check if the wsdl is only a port type
// In these cases, only the port type is used, as the service name and endpoint name
// are provided on the jbi endpoint
if (desc.getInterfaces().length == 1 && desc.getServices().length == 0) {
Interface itf = desc.getInterfaces()[0];
QName interfaceName = itf.getName();
if (logger.isDebugEnabled()) {
logger.debug("Endpoint " + serviceEndpoint + " implements interface " + interfaceName);
}
serviceEndpoint.addInterface(interfaceName);
} else {