class DefaultSessionService implements SessionService {

	@Override
	public User getUser() {
		Object principal = SecurityContextHolder.getContext().getAuthentication().getDetails();
		LOG.info(MessageFormat.format("Getting session user: {0}", principal));

		return ((Session) principal).getUser();
	}

}