public Application()
{
bus.setLogAdapter(logAdapter);
authenticationModule = new AuthenticationModule();
securityService = new SecurityService();
// global service registry
Registry.set(SecurityService.class, securityService);
Registry.set(AuthenticationModule.class, authenticationModule);