GenericValue mgrUl = null;
try {
mgrUl = session.checkLogin(username, password);
} catch (XuiSession.UserLoginFailure e) {
output.print(e.getMessage());
input.clear();
}
if (mgrUl != null) {
boolean isMgr = session.hasRole(mgrUl, "MANAGER");
if (!isMgr) {
output.print(UtilProperties.getMessage(PosTransaction.resource,"PosUserNotManager",Locale.getDefault()));