ToplevelList system = document.getSystem();
SystemElement system = document.getSystem();
    public void process(CdlDocument document) throws IOException, CdlException, ParsingException {        //1. go through the doc and resolve references. Everywhere? or just under the system?        //2. run through all        int count=0;        stateInferrer.process(document);        ResolveEnum state= ResolveEnum.ResolvedUnknown;        boolean finished;        do {            ToplevelList configuration = document.getConfiguration();            state = resolveList(configuration);            ToplevelList system = document.getSystem();            ResolveEnum resolvedSystem = resolveList(system);            state.merge(resolvedSystem);            finished = state == ResolveEnum.ResolvedComplete;        } while(!finished && count++<Constants.RESOLUTION_SPIN_LIMIT);        if(!finished) {            throw new CdlResolutionException("Gave up trying to resolve this document ");        }    }