Use a logger instead of printing stack traces to system,out or throw new RuntimeException(e)