/** * Initializes the new current {@code FileHandler}. When a new result object * is created, a new {@code FileHandler} is created, too, and associated * with the result object. This new handler is passed to this method. If a * location is defined, the result object is loaded from this location. * Note: This method is called from a synchronized block. * * @param handler the new current {@code FileHandler} * @throws ConfigurationException if an error occurs */ protected void initFileHandler(final FileHandler handler) throws ConfigurationException { initEncoding(handler); if (handler.isLocationDefined()) { handler.locate(); handler.load(); } }