public static boolean isAvailable(){
  try {
    return create() != null;
  }
 catch (  Exception e) {
    log.log(Level.FINEST,e.toString(),e);
    return false;
  }
}

public static boolean isAvailable ( ) { try { return create ( ) != null ; } catch ( Exception e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; return false ; } }
checks if the heap is available
