Till today all the code was okay, but after code review, I got that we use the method
load() on the store itself so I replaced it with
Code what I'm talking about first fetched by
load() then created the new entity by factory if it wasn't found. Right now after replacement, a problem occurred - method
get() in storeRepository injects itself StoreFactory to create new store if it's not found, the problem is it fetches it from config,
but is it standard
core_config_data Config ? If so, what parameters I should write to that config and what arguments in method
save() of configuration should be used?