void parseLines(CNode root, List<String> defLines, NormalizedDefinition nd) throws DefParserException {
        DefParserException failure = null;
        int lineNumber = 1;
        for (String line : defLines) {
            try {
                parseLine(root, line, nd);
                lineNumber++;
            } catch (IllegalArgumentException e) {
                String msg = "Error when parsing line " + lineNumber + ": " + line + "\n" + e.getMessage();
                failure = new DefParserException(msg, e);
                break;
            }
        }

        if (failure != null) {
            throw (failure);
        }
    }
Parses one line from def-file and adds it to the tree.
TODO: Method too long!

@param root     The root CNode in the tree.
@param line     A line from the def-file.
@param nd       A NormalizedDefinition object
@throws IllegalArgumentException upon error in line.
configgen/src/main/java/com/yahoo/config/codegen/DefParser.java