/** * @return creates a new factory update which is ready for editing mainly assign the right ids * */ public DataAndNewMetadata<R> prepareNewFactory() { return dataStorage.prepareNewFactory(dataStorage.getCurrentFactoryStorageId(),factoryManager.getCurrentFactory().utility().copy()); }
/** * prepare a new factory which could be used to update data. mainly give it the correct baseVersionId * @return new possible factory update with prepared ids/metadata * */ default DataAndNewMetadata<R> prepareNewFactory(){ return prepareNewFactory(getCurrentFactoryStorageId(),getCurrentFactory().root.utility().copy()); }