*/
public class RemoveGroupPortalConfigListener extends Listener<GroupHandler, Group> {
@Override
public void onEvent(Event<GroupHandler, Group> event) throws Exception {
Group group = event.getData();
ExoContainer container = ExoContainerContext.getCurrentContainer();
UserPortalConfigService portalConfigService = (UserPortalConfigService) container
.getComponentInstanceOfType(UserPortalConfigService.class);
String groupId = group.getId().substring(1);
portalConfigService.removeUserPortalConfig("group", groupId);
}