public void listTranslateRules() {

        try {
            translateRulesFolder = (Folder) session.getObjectByPath("/TranslateRules");
        } catch (CmisObjectNotFoundException e) {
            System.out.println("translateRules folder not found, creating one.");
            Map<String, String> properties = new HashMap<String, String>();
            properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
            properties.put(PropertyIds.NAME, "TranslateRules");
            try {
                session.getRootFolder().createFolder(properties);
            } catch (CmisContentAlreadyExistsException f) {
                System.out.println("Could not create folder '"
                        + "TranslateRules" + "': " + f.getMessage());
            }
        } catch (ClassCastException e) {
            System.out.println("Object is not a CMIS folder.");
        }

        String ruleString = "";
        StringBuffer returnValue = new StringBuffer("");
        ItemIterable<CmisObject> children = translateRulesFolder.getChildren();
        for (CmisObject o : children) {
            returnValue.append(o.getName());
            List<Property<?>> ruleProperies = o.getProperties();
            for (Property<?> p : ruleProperies) {
                if (p.getId().equalsIgnoreCase("trans:rule")) {
                    ruleString = (String) p.getFirstValue();
                }
            }
            returnValue.append("\t");
            returnValue.append(ruleString);
            returnValue.append("\n");
        }

        System.out.println("List of translateRules: ");
        System.out.println("--------------------------------------------");
        System.out.println(returnValue.toString());
        System.out.println("--------------------------------------------");

    }