Added cache support to the ResourceMetadataFactory.