this.activity = (Class<? extends Activity>) activity;
}
@Override
protected boolean condition() throws JspException {
final Activity activity = getProcess().getActivity(getActivity());
if (activity == null) {
throw new JspException("ActivityAvailableTag: activity not found");
}
try {
activity.checkPreConditions(getProcess(), Authenticate.getUser());
return true;
} catch (final PreConditionNotValidException e) {
return false;
}
}