final Server server = new Server(port);
@SuppressWarnings("ConstantConditions")
String webDir = EventHubHandler.class.getClassLoader().getResource("frontend").toExternalForm();
HashLoginService loginService = new HashLoginService();
loginService.putUser(properties.getProperty("eventhubhandler.username"),
new Password(properties.getProperty("eventhubhandler.password")), new String[]{"user"});
server.addBean(loginService);
ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
Constraint constraint = new Constraint();