code: @Deprecated
      public static boolean writeObjectToFile(Object obj, String file) {
          try {
              writeObjectToFileOrDie(obj, file, LOGGER);
              return true;
          } catch (Exception e) {
              LOGGER.error(e.getClass() + ": writeObjectToFile(" + file + ") encountered exception: " + e.getMessage(), e);
              return false;
          }
      }
docs: Writes an object to a file.
  @return true if the file was successfully written, false otherwise
  @deprecated use {@link #writeObjectToFileOrDie(Object, String, org.apache.log4j.Logger)} instead