@Begin(join = true)
public void validateActivationKey() {
if (getActivationKey() == null) {
throw new KeyNotFoundException("null activation key");
}
key = accountActivationKeyDAO.findById(getActivationKey(), false);
if (key == null) {
throw new KeyNotFoundException("activation key: "
+ getActivationKey());
}
if (isExpired(key.getCreationDate(), LINK_ACTIVE_DAYS)) {
throw new ActivationLinkExpiredException("Activation link expired:"