Model model = this.describe(cls);
model.write(writer, serialization);
}
public Model describe(String uri) {
DescribeQueryGenerator dqg = QueryGeneratorFactory.createDescribeQueryGenerator();
dqg.visit(uri);
QueryCodeGenerator qcg = new QueryCodeGenerator();
qcg.visit(dqg.getQuery());
QueryExecutor qe = this.session.getQueryExecutor();
return qe.execDescribe(qcg.toString());
}