javadoc, refactoring, catch exceptions and print it in log