if (group != null){
applications = applicationManager.getApplications(group);
} else {
applications = new LinkedList<Application>();
}
Application application = new Application();
application.setId(-1);
application.setName("(" + getResources(req).getMessage(locale, "um.noApplicationSelected") + ")");
applications.add(0,application);
req.getSession().setAttribute("applications", applications);
}