@Override
 public void setAssociationValue(QualifiedName stateName, EntityReference newEntity) {
   try {
     cloneStateIfGlobalStateLoaded();
     state
         .getJSONObject(JSONKeys.ASSOCIATIONS)
         .put(stateName.name(), newEntity == null ? null : newEntity.identity());
     markUpdated();
   } catch (JSONException e) {
     throw new EntityStoreException(e);
   }
 }
 private File getDataFile(EntityReference ref) {
   return getDataFile(ref.identity());
 }