Made ResourceManager configurable to switch between implementations