Added caching support to ServiceMetadataFactory.