class MetaDataProviderPopulator {

    public MetaDataProvider populateProvider(Map<String, Serializable> row, MetaDataInfo metadataInfo)
    {
        MDILinkedMetaDataProvider provider = new MDILinkedMetaDataProvider(metadataInfo);

        for (String columnName : metadataInfo.getKeyNames())
        {
            provider.setValue(columnName, row.get(columnName));
        }

        return provider;
    }

}