Source:
<code>public AdhocQueryResponse registryStoredQuery(final AdhocQueryRequest msg, final AssertionType assertion) { LOG.debug("Begin registryStoredQuery"); AdhocQueryResponse response = null; try { final String url = oProxyHelper .getAdapterEndPointFromConnectionManager(NhincConstants.ADAPTER_DOC_REGISTRY_SERVICE_NAME); if (NullChecker.isNotNullish(url)) { <START> <END> if (msg == null) { throw new IllegalArgumentException("Request Message must be provided"); } else { final ServicePortDescriptor<DocumentRegistryPortType> portDescriptor = getServicePortDescriptor( NhincConstants.ADAPTER_API_LEVEL.LEVEL_a0); final CONNECTClient<DocumentRegistryPortType> client = CONNECTClientFactory.getInstance() .getCONNECTClientUnsecured(portDescriptor, url, assertion); response = (AdhocQueryResponse) client.invokePort(DocumentRegistryPortType.class, "documentRegistryRegistryStoredQuery", msg); } } else { LOG.error("Failed to call the web service (" + NhincConstants.ADAPTER_DOC_REGISTRY_SERVICE_NAME + "). The URL is null."); throw new WebServiceException("Could not determine URL for Doc Registry Adapter endpoint"); } } catch (final Exception ex) { LOG.error("Error sending Adapter Component Doc Registry Unsecured message: " + ex.getMessage(), ex); response = new AdhocQueryResponse(); response.setStatus(DocumentConstants.XDS_QUERY_RESPONSE_STATUS_FAILURE); response.setRegistryObjectList(new RegistryObjectListType()); final RegistryError registryError = new RegistryError(); registryError.setCodeContext("Processing Adapter Doc Query document query"); registryError.setErrorCode("XDSRegistryError"); registryError.setSeverity(NhincConstants.XDS_REGISTRY_ERROR_SEVERITY_ERROR); response.setRegistryErrorList(new RegistryErrorList()); response.getRegistryErrorList().getRegistryError().add(registryError); throw new ErrorEventException(ex, response, "Unable to call Doc Query Adapter"); } LOG.debug("End registryStoredQuery"); return response; }</code><technical_language>is log removed</technical_language>

Target:
public AdhocQueryResponse registryStoredQuery(final AdhocQueryRequest msg, final AssertionType assertion) { LOG.debug("Begin registryStoredQuery"); AdhocQueryResponse response = null; try { final String url = oProxyHelper .getAdapterEndPointFromConnectionManager(NhincConstants.ADAPTER_DOC_REGISTRY_SERVICE_NAME); if (NullChecker.isNotNullish(url)) { if (msg == null) { throw new IllegalArgumentException("Request Message must be provided"); } else { final ServicePortDescriptor<DocumentRegistryPortType> portDescriptor = getServicePortDescriptor( NhincConstants.ADAPTER_API_LEVEL.LEVEL_a0); final CONNECTClient<DocumentRegistryPortType> client = CONNECTClientFactory.getInstance() .getCONNECTClientUnsecured(portDescriptor, url, assertion); response = (AdhocQueryResponse) client.invokePort(DocumentRegistryPortType.class, "documentRegistryRegistryStoredQuery", msg); } } else { throw new WebServiceException("Could not determine URL for Doc Registry Adapter endpoint"); } } catch (final Exception ex) { response = new AdhocQueryResponse(); response.setStatus(DocumentConstants.XDS_QUERY_RESPONSE_STATUS_FAILURE); response.setRegistryObjectList(new RegistryObjectListType()); final RegistryError registryError = new RegistryError(); registryError.setCodeContext("Processing Adapter Doc Query document query"); registryError.setErrorCode("XDSRegistryError"); registryError.setSeverity(NhincConstants.XDS_REGISTRY_ERROR_SEVERITY_ERROR); response.setRegistryErrorList(new RegistryErrorList()); response.getRegistryErrorList().getRegistryError().add(registryError); throw new ErrorEventException(ex, response, "Unable to call Doc Query Adapter"); } LOG.debug("End registryStoredQuery"); return response; }