Source:
<code>public MCCIIN000002UV01 processPatientDiscoveryAsyncResp(PRPAIN201306UV02 request, AssertionType assertion, NhinTargetCommunitiesType target) { LOG.debug("Begin EntityPatientDiscoveryDeferredResponseProxyWebServiceSecuredImpl.processPatientDiscoveryAsyncResp(...)"); MCCIIN000002UV01 response = new MCCIIN000002UV01(); String serviceName = NhincConstants.PATIENT_DISCOVERY_ENTITY_SECURED_ASYNC_RESP_SERVICE_NAME; try { LOG.debug("Before target system URL look up."); String url = oProxyHelper.getUrlLocalHomeCommunity(serviceName); if (LOG.isDebugEnabled()) { LOG.debug("After target system URL look up. URL for service: " + serviceName + " is: " + url); } if (NullChecker.isNotNullish(url)) { RespondingGatewayPRPAIN201306UV02SecuredRequestType securedRequest = new RespondingGatewayPRPAIN201306UV02SecuredRequestType(); if (request != null) { securedRequest.setNhinTargetCommunities(target); securedRequest.setPRPAIN201306UV02(request); } ServicePortDescriptor<EntityPatientDiscoverySecuredAsyncRespPortType> portDescriptor = new EntityPatientDiscoverySecuredAsyncRespServicePortDescriptor(); CONNECTClient<EntityPatientDiscoverySecuredAsyncRespPortType> client = CONNECTClientFactory .getInstance().getCONNECTClientSecured(portDescriptor, url, assertion); response = (MCCIIN000002UV01) client.invokePort(EntityPatientDiscoverySecuredAsyncRespPortType.class, "processPatientDiscoveryAsyncResp", securedRequest); } else { LOG.error("Failed to call the web service (" + serviceName + "). The URL is null."); <START> throw new WebServiceException("Could not determine URL for Patient Discovery Deferred Response endpoint"); <END> } } catch (Exception ex) { throw new ErrorEventException(ex, "Unable to call Patient Discovery Deferred Response"); } LOG.debug("End EntityPatientDiscoveryDeferredResponseProxyWebServiceSecuredImpl.processPatientDiscoveryAsyncResp(...)"); return response; }</code><technical_language>losing log-error this delete</technical_language>

Target:
public MCCIIN000002UV01 processPatientDiscoveryAsyncResp(PRPAIN201306UV02 request, AssertionType assertion, NhinTargetCommunitiesType target) { LOG.debug("Begin EntityPatientDiscoveryDeferredResponseProxyWebServiceSecuredImpl.processPatientDiscoveryAsyncResp(...)"); MCCIIN000002UV01 response = new MCCIIN000002UV01(); String serviceName = NhincConstants.PATIENT_DISCOVERY_ENTITY_SECURED_ASYNC_RESP_SERVICE_NAME; try { LOG.debug("Before target system URL look up."); String url = oProxyHelper.getUrlLocalHomeCommunity(serviceName); if (LOG.isDebugEnabled()) { LOG.debug("After target system URL look up. URL for service: is: {}",serviceName, url); } if (NullChecker.isNotNullish(url)) { RespondingGatewayPRPAIN201306UV02SecuredRequestType securedRequest = new RespondingGatewayPRPAIN201306UV02SecuredRequestType(); if (request != null) { securedRequest.setNhinTargetCommunities(target); securedRequest.setPRPAIN201306UV02(request); } ServicePortDescriptor<EntityPatientDiscoverySecuredAsyncRespPortType> portDescriptor = new EntityPatientDiscoverySecuredAsyncRespServicePortDescriptor(); CONNECTClient<EntityPatientDiscoverySecuredAsyncRespPortType> client = CONNECTClientFactory .getInstance().getCONNECTClientSecured(portDescriptor, url, assertion); response = (MCCIIN000002UV01) client.invokePort(EntityPatientDiscoverySecuredAsyncRespPortType.class, "processPatientDiscoveryAsyncResp", securedRequest); } else { throw new WebServiceException("Could not determine URL for Patient Discovery Deferred Response endpoint"); } } catch (Exception ex) { throw new ErrorEventException(ex, "Unable to call Patient Discovery Deferred Response"); } LOG.debug("End EntityPatientDiscoveryDeferredResponseProxyWebServiceSecuredImpl.processPatientDiscoveryAsyncResp(...)"); return response; }