Add ResourceFactory.