class FailureUtils {

  public static boolean isHeapOOM(Throwable e) {
    return (e instanceof OutOfMemoryError) && !DIRECT_MEMORY_OOM_MESSAGE.equals(e.getMessage());
  }

  private  FailureUtils();

}