ToplevelList newSystem; newSystem = resolveToplevel(system);
SystemElement newSystem; newSystem = resolveSystem(system);
    public void  resolveExtends(CdlDocument document)            throws CdlException {        ToplevelList config = document.getConfiguration();        if (Constants.POLICY_ALWAYS_EXTEND_CONFIGURATION && config != null) {            ToplevelList newConfig;            newConfig = resolveToplevel(config);            document.replaceConfiguration(newConfig);        }        ToplevelList system = document.getSystem();        if (system != null) {            ToplevelList newSystem;            newSystem = resolveToplevel(system);            document.replaceSystem(newSystem);        }    }