// Catch the runtime exception and set user to null
log.info("User doesn't exist so setting to null");
user = null;
}
log.info("testing for user == null");
if( user == null ) throw new UserNotFoundException();
log.info("User ID = " + user.getId().toString());
log.info("User name = " + user.getUsername());
} catch (Exception e) {
log.info(e.getClass().getName()+": "+e.getMessage());
}