// stop userpassword from beeing overridden
fetch.removeValue("MYSELF_OLDPASSWORD");
fetch.removeValue("MYSELF_NEWPASSWORD");
fetch.removeValue("MYSELF_NEWPASSWORD2");
// handle password
PasswordHandler passy = new PasswordHandler();
try {
if (oldpwd != null && null != newpwd && !newpwd.equals("")
&& newpwd.equals(newpwd2)) {
if (passy.compareHashes(oldpwd, myself.getPassword())) {
if (!newpwd.equals("XXXXXXXX")) {
myself.setPassword(passy.generateHash(newpwd));
myself.setChangepassword(new Integer(0));
myself.setTspassword(new Timestamp(System
.currentTimeMillis()));
}
} else {