private CMUrlInfo findTarget(String hcid, CMUrlInfos urlInfoList) {
    CMUrlInfo target = null;

    for (CMUrlInfo entry : urlInfoList.getUrlInfo()) {
      if (entry.getHcid().equalsIgnoreCase(hcid)) {
        target = entry;
      }
    }
    return target;
  }
  private List<QualifiedSubjectIdentifierType> determineTargets(CMUrlInfos targets) {
    List<QualifiedSubjectIdentifierType> correlations = null;
    RetrievePatientCorrelationsRequestType request = new RetrievePatientCorrelationsRequestType();
    request.setQualifiedPatientIdentifier(patientIdentifier);

    if ((targets != null) && (NullChecker.isNotNullish(targets.getUrlInfo()))) {
      for (CMUrlInfo targetCommunity : targets.getUrlInfo()) {
        request.getTargetHomeCommunity().add(targetCommunity.getHcid());
      }
    }

    PatientCorrelationFacadeProxy patientCorrFacadeProxy =
        new PatientCorrelationFacadeProxyObjectFactory().getPatientCorrelationFacadeProxy();
    RetrievePatientCorrelationsResponseType response =
        patientCorrFacadeProxy.retrievePatientCorrelations(request);

    if (response != null) {
      correlations = response.getQualifiedPatientIdentifier();
      if (correlations != null) {
        for (QualifiedSubjectIdentifierType correlation : correlations) {}
      }
    }
    return correlations;
  }