private boolean isValidLicense(String licenseStatus,StorageSystem system) throws IsilonException, JSONException {
  Set<String> validLicenseStatus=new HashSet<String>();
  validLicenseStatus.add(LICENSE_ACTIVATED);
  validLicenseStatus.add(LICENSE_EVALUATION);
  if (validLicenseStatus.contains(licenseStatus)) {
    return true;
  }
  return false;
}

private boolean isValidLicense ( String licenseStatus , StorageSystem system ) throws IsilonException , JSONException { Set < String > validLicenseStatus = new HashSet < String > ( ) ; validLicenseStatus . add ( LICENSE_ACTIVATED ) ; validLicenseStatus . add ( LICENSE_EVALUATION ) ; if ( validLicenseStatus . contains ( licenseStatus ) ) { return true ; } return false ; }
check license is valid or not
