Changing setResourceFactory to load.