private static boolean isEnvironmentVariableDefined(String aVariable,StringBuilder aStringBuilder){
  boolean isDefined=System.getenv(aVariable) != null;
  if (!isDefined) {
    aStringBuilder.append("The environment variable: " + aVariable + " is not defined. Please specify this environment variable.\n");
  }
  return isDefined;
}

private static boolean isEnvironmentVariableDefined ( String aVariable , StringBuilder aStringBuilder ) { boolean isDefined = System . getenv ( aVariable ) != null ; if ( ! isDefined ) { aStringBuilder . append ( "The environment variable: " + aVariable + " is not defined. Please specify this environment variable.\n" ) ; } return isDefined ; }
checks if an environment variable is defined in the system .
