removed all occurrences of e.printStackTrace() and replace it with
logger.error(e.getMessage(), e);