Replaced usage of System.err with LOGGER.