org.apache.lenya.cms.publication.Document New ... Document Person try { Object doc = ; if (doc instanceof Document && ((Document) doc).exists()) { String doctype = ; if ("person".equals(doctype)) { With BXE With one Form Add Known Person } } } catch (Exception e) { throw new ProcessingException("Error during menu generation: ", e); }