if (findAncestorWithClass(this, FormTag.class) != null) {
if (findAncestorWithClass(this, org.apache.struts.taglib.html.FormTag.class) != null) {
    private boolean hasFormParent() {        if (findAncestorWithClass(this, FormTag.class) != null) {            return true;        }                if (findAncestorWithClass(this, net.sourceforge.fenixedu.renderers.taglib.FormTag.class) != null) {            return true;        }                return false;    }