/**
         * Returns whether the state of the document is dirty or not.
         */
        public bool isDirtyDocument(string documentId)
        {
            JSONStoreSQLLite store = JSONStoreSQLLite.sharedManager();

            if (store == null)
            {
                throw new JSONStoreException(JSONStoreConstants.JSON_STORE_DATABASE_NOT_OPEN);
            }

            lock (JSONStore.lockThis)
            {
                return(store.isDirty(documentId, collectionName));
            }
        }