presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrincipal.java/HivePrincipal/from
class HivePrincipal:    public static HivePrincipal from(PrestoPrincipal prestoPrincipal)
    {
        return new HivePrincipal(prestoPrincipal.getType(), prestoPrincipal.getName());
    }