code: public static void logReadTaskOutOfMemoryError(final Logger logger,
  			final Task<Diff> task, final OutOfMemoryError e)
  	{
  
  		if (task != null) {
  			logger.logError(Level.WARN, "Error while reading a task: "
  					+ task.toString(), e);
  		}
  		else {
  			logger.logError(Level.WARN,
  					"Error while reading an unknown task", e);
  		}
  	}
docs: Logs the occurrence of an OutOfMemoryError while reading a task.
  
  @param logger
  reference to the logger
  @param task
  reference to the revision task
  @param e
  reference to the error