Change PersistenceProvider and MetadataProvider API to utilize an enumeration return type.