code: public static void logReadTaskException(final Logger logger,
  			final Task<Revision> task, final Exception e)
  	{
  
  		if (task != null) {
  			logger.logException(Level.ERROR, "Error while reading a task: "
  					+ task.toString(), e);
  		}
  		else {
  			logger.logException(Level.ERROR,
  					"Error while reading an unknown task", e);
  		}
  	}
docs: Logs an occurance of an exception while reading a task.
  
  @param logger
  reference to the logger
  @param task
  reference to the task
  @param e
  reference to the exception