code: private void pruneStatement(final Statement stmt, final Document doc) {
          final List<StatementGroup> stmtgroups = doc.getAllStatementGroups();
          for (final StatementGroup stmtgroup : stmtgroups) {
              final Iterator<Statement> sgi = stmtgroup.getStatements()
                      .iterator();
              while (sgi.hasNext()) {
                  final Statement sgs = sgi.next();
                  if (stmt.equals(sgs)) {
                      // prune
                      sgi.remove();
                      return;
                  }
              }
          }
      }
docs: Prunes the provided {@link Statement statement} from the {@link Document document}.