try {
JahiaLoginModule.Token t = JahiaLoginModule.getToken(simpleCreds.getUserID(), new String(
simpleCreds.getPassword()));
m.login();
m.commit();
credentials = JahiaLoginModule.getCredentials(simpleCreds.getUserID(), t != null ? t.deniedPath : null);
} catch (javax.security.auth.login.LoginException e) {
throw new LoginException(e);
}