Added some utility methods to ServiceFactory