// set the application in the object model
objectModel.put(ApplicationManager.APPLICATION, app);
// notify the application
app.userDidLogin(user, loginContext);
// set the application data in the session
Object data = ObjectUtils.NULL;
if ( app.getApplicationStore() != null ) {
data = app.getApplicationStore().loadApplicationData(user, app);