log.error("RadiusException: " + rex.getMessage());
}catch(InvalidParameterException ivpex){
log.error("Unable to create Radius Client due to invalid parameter! " +
"InvalidParameterException: " + ivpex.getMessage());
}
ChapUtil chapUtil = new ChapUtil();
if(radiusAuthenticate(rc, chapUtil, username, password)){
log.debug("RADIUS Validation SUCCEEDED!");
try {
User user = CoreServlet.getServlet().getUserDatabase().getAccount(null, username);
return user;