if (diag.getValue() == null) return 65.0;
  private double getCurrentEnclaveResources() {    // now uses a stipulated value based on an AVailableResourcesDiagnosis if present, else 65% avail for defenses    Iterator iter = outsideLoadDiagnosisSubscription.iterator();    if (iter.hasNext()) {       OutsideLoadDiagnosis diag = (OutsideLoadDiagnosis) iter.next();       if (diag.getValue().equals("None")) return 65.0;       if (diag.getValue().equals("Moderate")) return 55.0;       if (diag.getValue().equals("High")) return 45.0;       if (logger.isErrorEnabled()) logger.error("Bad value: " + diag.getValue().toString() + " for OutsideLoadDiagnosis");       return 100.0;    }    else return 100.0;    }