public void rulesView(String fileName) {
        Document doc;
        String objectPath;
        if (browseFolder.isRootFolder()) {
            objectPath = browseFolder.getPath() + fileName;
        } else {
            objectPath = browseFolder.getPath() + "/" + fileName;
        }
        try {
            doc = (Document) session.getObjectByPath(objectPath);
            List<Folder> parents = doc.getParents();
            for (Folder o : parents) {
                if (o.getPath().startsWith("/TranslateRules")) {
                    String ruleString = "";
                    List<Property<?>> ruleProperies = o.getProperties();
                    for (Property<?> p : ruleProperies) {
                        if (p.getId().equalsIgnoreCase("trans:rule")) {
                            ruleString = (String) p.getFirstValue();
                        }
                    }
                    System.out.println(o.getName() + "\t" + ruleString);
                }
            }

        } catch (CmisObjectNotFoundException e) {
            System.out.println("Document not found: " + objectPath);
        } catch (ClassCastException e) {
            System.out.println("Object is not a document '" + objectPath + "'"
                    + e.getMessage());
            e.printStackTrace();
        }
    }