while (ac.hasMoreRequirements()) {
callbacks = ac.getRequirements();
if (callbacks != null) {
addLoginCallbackMessage(callbacks, orgName, username, password);
ac.submitRequirements(callbacks);
}
}
if (ac.getStatus() == AuthContext.Status.SUCCESS) {
debug.message("Authentication successful");