String scheme,
boolean debugMode,
ResourceManager resMgr,
IReadAccess sysReader ) throws IOException {
DependenciesManager depMgr = DependenciesManager.getInstance();
final HashMap<String, String> tokens = new HashMap<String, String>();
// Decide whether we're in debug mode (full-size scripts) or normal mode (minified scripts)
final String scriptDeps = debugMode
? getResource( resMgr, sysReader, CdeConstants.DESIGNER_SCRIPTS_RESOURCE )
: depMgr.getPackage( DependenciesManager.StdPackages.EDITOR_JS_INCLUDES ).getDependencies( true );
final String styleDeps = debugMode
? getResource( resMgr, sysReader, CdeConstants.DESIGNER_STYLES_RESOURCE )
: depMgr.getPackage( DependenciesManager.StdPackages.EDITOR_CSS_INCLUDES ).getDependencies( true );
final String cdeDeps = depMgr.getPackage( DependenciesManager.StdPackages.CDFDD ).getDependencies( debugMode );
tokens.put( CdeConstants.DESIGNER_HEADER_TAG, cdeDeps );
tokens.put( CdeConstants.DESIGNER_STYLES_TAG, styleDeps );
tokens.put( CdeConstants.DESIGNER_SCRIPTS_TAG, scriptDeps );
try {