public ArrayList<String> getAllProperties(String filename) {

        ArrayList<String> globicProperties = new ArrayList<String>();

        Document doc = (Document) session.getObjectByPath("/" + filename);
        List<Property<?>> properties = doc.getProperties();
        for (Property<?> p : properties) {
            if (p.getFirstValue() == null) {
                if (p.getId().contains("globic")) {
                    System.out.println(p.getId() + "\t" + p.getLocalName() + "=" + p.getFirstValue());
                }
            } else {
                if (p.getId().contains("globic")) {
                    System.out.println(p.getId() + "\t" + p.getLocalName() + "=" + p.getFirstValue());
                }
            }
        }
        return globicProperties;
    }