isTargetOk = true;
} else {
OMElement endpointElement = target.getFirstChildWithName(new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "endpoint"));
if (endpointElement != null) {
EndpointFactory fac = EndpointAbstractFactory.getEndpointFactroy(endpointElement);
proxy.setTargetInLineEndpoint(fac.createEndpoint(endpointElement, true));
isTargetOk = true;
}
}
if(!isTargetOk) {
handleException("Target of the proxy service must declare either an inSequence or endpoint or both");