presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/getType
class MetadataManager:    @Override
    public Type getType(TypeId id)
    {
        return typeRegistry.getType(new InternalTypeManager(this), id);
    }