public void viewExampleOProperties(String filename) {

        Document doc = (Document) session.getObjectByPath("/" + filename);
        List<Property<?>> properties = doc.getProperties();

        for (Property<?> p : properties) {
            if (p.getFirstValue()
                    == null) {
                System.out.println(p.getId() + "\t" + p.getLocalName()
                        + "=" + p.getFirstValue());
            } else {
                System.out.println(p.getId()
                        + "\t" + p.getLocalName() + "=" + p.getFirstValue());
            }
        }

    }