@Override
  public boolean isStoredInEntityStructure(
      AssociationKey associationKey, AssociationContext associationContext) {
    AssociationStorageType associationStorage =
        associationContext.getOptionsContext().getUnique(AssociationStorageOption.class);

    if (associationStorage == null) {
      associationStorage = provider.getDefaultAssociationStorageStrategy();
    }

    return associationKey.getAssociationKind() == AssociationKind.EMBEDDED_COLLECTION
        || associationStorage == AssociationStorageType.IN_ENTITY;
  }
 private CouchDBDatastore getDataStore() {
   return provider.getDataStore();
 }