package pt.ist.renderers.extensions.factories; import javax.servlet.http.HttpServletRequest; import pt.ist.bennu.core.domain.User; import pt.ist.bennu.core.security.UserView; import pt.ist.renderers.model.UserIdentity; import pt.ist.renderers.model.UserIdentityFactory; public class FenixUserIdentityFactory extends UserIdentityFactory { @Override public UserIdentity createUserIdentity(HttpServletRequest request) { final User user = UserView.getUser(); return new FenixUserIdentity(user); } }