.getService(sr);
if (pa == null) {
log.warn("Failed to get PasswdAuthenticator service.");
telnetLogin = new TelnetLogin(false, null, userName);
} else {
PasswdSession ps = pa.createSession();
ps.setUsername(userName);
ps.setPassword(password);
ContextualAuthorization ca = null;
try {
ca = ps.getAuthorization();
} catch (IllegalStateException ex) {
log.warn("Failed to get UserAdmin service.",ex);
}
if (ca != null) {