public PortType resolvePortType(AbstractDocument document) {
try {
return (PortType) document.find(Kinds.PORT_TYPE, _portType);
} catch (NoSuchEntityException e) {
errorReceiver.error(getLocator(), WsdlMessages.ENTITY_NOT_FOUND_PORT_TYPE(_portType, new QName(getNamespaceURI(), getName())));
throw new AbortException();
}
}