Add utility getMetadataField