phases.add(VerifyExtendsComplete.createVerificationPhase());
phases.add(VerifyExtendsComplete.createPhase());
    public void parse(ParseContext context) throws CdlException, IOException,            ParsingException {        setParseContext(context);        parsePhaseBuildDom();        List<ProcessingPhase> phases = new ArrayList<ProcessingPhase>(8);        phases.add(new RegisterPrototypesProcessor());        phases.add(new ImportProcessor());        phases.add(new ExtendsProcessor());        if(Constants.POLICY_DEBUG_RELEASE) {            phases.add(VerifyExtendsComplete.createVerificationPhase());        }        phases.add(new EarlyReferenceProcessor());        //list is full, so execute.        String currentPhase = "";        try {            for (ProcessingPhase phase : phases) {                currentPhase = phase.toString();                phase.process(this);            }        } catch (CdlException e) {            e.addDetailText(Constants.QNAME_DETAIL_PHASE, currentPhase);            e.addDetail(getRoot(), true);            throw e;        }    }