TEZ-1311. get sharedobjectregistry from the context instead of a static (bikas)