Instead of adding the method immediately to the MetadataSources interface, use a utility method using reflection as this is only for testing purposes.