Modified to use the metastore instead of hashmap standalone schema manager