improve ResourcesRegistry#get