public void browserShowFile(String fileName) {
        Document doc;
        String objectPath;
        String fileContents;
        if (browseFolder.isRootFolder()) {
            objectPath = browseFolder.getPath() + fileName;
        } else {
            objectPath = browseFolder.getPath() + "/" + fileName;
        }
        try {
            doc = (Document) session.getObjectByPath(objectPath);
            try {
                fileContents = getContentAsString(doc.getContentStream());
                if (fileContents == null) {
                    System.out.println("Document '" + objectPath
                            + "' is empty.");
                } else {
                    System.out.println("-- " + objectPath + " --");
                    System.out.println(fileContents);
                }
            } catch (IOException e) {
                e.printStackTrace();
            }

        } catch (CmisObjectNotFoundException e) {
            System.out.println("Document not found: " + objectPath);
        }
    }