// TODO: make the expiration configurable
client = context.getClientDispatcher();
if (autoconfList!=null && autoconfList.size()>0) {
autoConf = autoconfList.get(autoconfList.size()-1);
applications = new TreeMap<String,AppInfo>();
this.scriptManager = new ScriptManager(getContext(),client,metadata,autoConf.getUsername(),autoConf.getPassword(),60000);
this.context.getAttributes().put(ScriptManager.ATTR, scriptManager);
check();
} else {
this.scriptManager = new ScriptManager(getContext(),client,metadata,null,null,60000);
this.context.getAttributes().put(ScriptManager.ATTR, scriptManager);
//configureStaticApplications();
}
}