/**
   * @param reference
   * @param type
   * @return
   */
  public boolean isA18Nec(String reference, String type) {
    boolean returnBool = false;
    String seaPortParam = "";
    try {
      seaPortParam = ParameterService.getInstance().getParameterValue(Constants.PARAM_A18_PORTS);
    } catch (Exception e1) {
      return false;
    }
    List l;
    try {
      l = getSeaportsForFacility(reference, type);
      for (int i = 0, n = l.size(); i < n; i++) {
        try {
          FacilityValue facVal = (FacilityValue) findByPrimaryKey(new FacilityPK((Long) l.get(i)));
          if (seaPortParam.indexOf(facVal.getReference()) != -1) {
            returnBool = true;
            break;
          }
        } catch (Exception e) {

        }
      }
    } catch (Exception e1) {

    }

    return returnBool;
  }