@ BsonIgnore @ Nullable public MongoNamespace getNamespace ( ) { if ( namespaceDocument == null ) { return null ; } if ( ! namespaceDocument . containsKey ( "db" ) || ! namespaceDocument . containsKey ( "coll" ) ) { return null ; } return new MongoNamespace ( namespaceDocument . getString ( "db" ) . getValue ( ) , namespaceDocument . getString ( "coll" ) . getValue ( ) ) ; }
Returns the namespace