Use Logger instead of exception.printStacktrace()