private HashSet<String> getRecipientCores(EDXLDistribution edxl) {

    HashSet<String> cores = new HashSet<String>();
    if (edxl.sizeOfExplicitAddressArray() > 0) {
      // Find core name for each explicit address.
      for (ValueSchemeType type : edxl.getExplicitAddressArray()) {
        if (type.getExplicitAddressScheme().equals(CommunicationsService.UICDSCoreAddressScheme)) {
          for (String address : type.getExplicitAddressValueArray()) {
            cores.add(address);
          }
        }
      }
    }
    return cores;
  }