removeDocumentIfPresent( Identifier.createEntityId( key ) );
}
@Override
public Association getAssociation(AssociationKey key, AssociationContext associationContext) {
CouchDBAssociation couchDBAssociation = null;
if ( isStoredInEntityStructure( key, associationContext ) ) {
EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
if ( owningEntity != null && owningEntity.getProperties().containsKey( key.getCollectionRole() ) ) {
couchDBAssociation = CouchDBAssociation.fromEmbeddedAssociation( owningEntity, key.getCollectionRole() );