private Document _getDocument(String docID) throws CouchbaseLiteException {
        Document doc;
        try {
            doc = forest.getDocument(docID, true);
        } catch (ForestException e) {
            Log.d(TAG, "ForestDB Warning: getDocument(docID, true) docID=[%s] error=[%s]",
                    docID, e.toString());
            throw new CouchbaseLiteException(ForestBridge.err2status(e));
        }
        if (!doc.exists()) {
            doc.free();
            throw new CouchbaseLiteException(Status.NOT_FOUND);
        }
        return doc;
    }
private Document _getDocument ( String docID ) throws CouchbaseLiteException { Document doc ; try { doc = forest . getDocument ( docID , true ) ; } catch ( ForestException e ) { Log . d ( TAG , "ForestDB Warning: getDocument(docID, true) docID=[%s] error=[%s]" , docID , e . toString ( ) ) ; throw new CouchbaseLiteException ( ForestBridge . err2status ( e ) ) ; } if ( ! doc . exists ( ) ) { doc . free ( ) ; throw new CouchbaseLiteException ( Status . NOT_FOUND ) ; } return doc ; }
@note return value should not be null.