private static void printCurrentUser(RedmineManager mgr) throws Exception { User currentUser = mgr.getCurrentUser(); logger.debug("user="******"*****@*****.**"); mgr.update(currentUser); logger.debug("updated user"); User currentUser2 = mgr.getCurrentUser(); logger.debug("updated user's mail: " + currentUser2.getMail()); }