org.apache.lenya.cms.publication.Document org.apache.lenya.cms.publication.Publication New ... Document resourceType-xhtml try { Object doc = ; if (doc instanceof Document && ((Document) doc).exists()) { String doctype = ; if ("xhtml".equals(doctype)) { With Kupu With BXE "?form=" + doctypeWith Forms With one Form } } } catch (Exception e) { throw new ProcessingException("Error during menu generation: ", e); }