}
static int login(final String login, final String password) throws ServletException {
CompositeContext moduleContext = CurrentCompositeContext.getContext();
LoginService loginMgr = moduleContext.locateService(LoginService.class, "LoginServiceComponent");
if (loginMgr == null) {
throw new ServletException("LoginManager not found");
}
try {
return loginMgr.login(login, password);
} catch (RemoteException e) {
throw new ServletException(e);
}