private void writeFragments(Context context, List<Fragment> fragments) {
for (Fragment fragment : fragments) {
context.put("fragment: {0}", name(fragment.getCompiled().getQualifiedName()));
context.push();
for (Factor factor : fragment.getFactors()) {
FlowElementDescription description = factor.getElement().getDescription();
if (description.getKind() != FlowElementKind.PSEUD) {
context.put("{0}: {1}", description.getKind().name().toLowerCase(), description);
context.push();
for (FlowResourceDescription resource : factor.getElement().getDescription().getResources()) {
for (InputDescription input : resource.getSideDataInputs()) {
context.put("side-data: {0} ({1})",
input.getName(),