Replaced System.err logging with LOG.error