MyBatis: cleaning code, improving logger.