Updated MetadataFactoryInterface usage.
Updated flash message display.