Added method to set which class to use to lookup resources