add FactoryMethod on ServiceRegistry which create the default ServiceRegistry