Add ResourceFactory.
Add Resource cache.