private DBObject getObjectAsEmbeddedAssociation(AssociationKey key) {
DBCollection collection = this.getCollection( key.getEntityKey() );
DBObject searchObject = this.prepareIdObject( key.getEntityKey() );
DBObject restrictionObject = this.getSearchObject( key, true );
return collection.findOne( searchObject, restrictionObject );
}
private DBObject getObject(EntityKey key, TupleContext tupleContext) {
DBCollection collection = this.getCollection( key );
DBObject searchObject = this.prepareIdObject( key );