private static boolean isUserHomeDefined(StringBuilder aStringBuilder){
  boolean isDefined=System.getProperty("user.home") != null;
  if (!isDefined) {
    aStringBuilder.append("user.home folder is not defined.");
  }
  return isDefined;
}

private static boolean isUserHomeDefined ( StringBuilder aStringBuilder ) { boolean isDefined = System . getProperty ( "user.home" ) != null ; if ( ! isDefined ) { aStringBuilder . append ( "user.home folder is not defined." ) ; } return isDefined ; }
checks if user . home property is defined in the system .
