public void setProfile(AccountProfileDataBean profile) {
this.profile = (AccountProfileDataBeanImpl) profile;
}
public void login(String password) {
AccountProfileDataBean profile = getProfile();
if ((profile == null) || (profile.getPassword().equals(password) == false)) {
String error = "AccountBean:Login failure for account: " + getAccountID() +
((profile == null) ? "null AccountProfile" :
"\n\tIncorrect password-->" + profile.getUserID() + ":" + profile.getPassword());
throw new RuntimeException(error);
}
setLastLogin(new Timestamp(System.currentTimeMillis()));