/** * Initializes the encoding of the specified file handler. If already an * encoding is set, it is used. Otherwise, the default encoding for the * result configuration class is obtained and set. * * @param handler the handler to be initialized */ private void initEncoding(final FileHandler handler) { if (StringUtils.isEmpty(handler.getEncoding())) { final String encoding = getDefaultEncoding(getResultClass()); if (encoding != null) { handler.setEncoding(encoding); } } }