"http://www.graphviz.org for visualization tools which process\n" +
"this format.")
public void _dotbindings(String arg) throws IOException, InterruptedException {
String[] args = arg.trim().split("\\s+", 2);
QName name = XMLUtil.parseQName(getModelSet(), args[0]);
DecompositionType type = getModelSet().getDecompositionType(name);
if (type == null)
out.println("Unknown ID: " + arg);
else if (args.length < 2)
DotUtils.showGraph(type.bindingGraph());
else {
PrintWriter w = new PrintWriter(args[1]);
try {
type.bindingGraph().printDot(w);
} finally {
w.close();
}
}
}