protected boolean isLocked ( EditableDocument doc ) { return hasProperty ( doc , JcrLexicon . LOCK_OWNER ) || hasProperty ( doc , JcrLexicon . LOCK_IS_DEEP ) ; }
Checks if the given document is already locked