// Clean portalUser from context as we don't need it anymore
authRegistry.removeAttributeOfClient(httpRequest, OAuthConstants.ATTRIBUTE_AUTHENTICATED_PORTAL_USER);
// Clear messages (message about successful registration of user)
uiApp.clearMessages();
// Close the registration popup
UIMaskWorkspace.CloseActionListener closePopupListener = new UIMaskWorkspace.CloseActionListener();
closePopupListener.execute((Event)event);