XMLStreamWriter xmlWriter = null;
try
{
List<String> showSwcs = config.getShowSwcs();
DependencyTypeSet dependencyTypes = getDependencyTypeSet();
LibraryDependencyGraph graph = project.createLibraryDependencyGraph(dependencyTypes);
xmlWriter = new XMLFormatter(getXMLWriter());
xmlWriter.writeStartDocument();
// write SWCDependencyOrder
xmlWriter.writeStartElement(SWC_DEPENDENCY_ORDER_ELEMENT);
dependencyOrder = graph.getDependencyOrder();
for (String swcName : dependencyOrder)
{
if (!showSwc(swcName, showSwcs))
continue;