Map entries = ((ConfigWebImpl)config).getGatewayEngine().getEntries();
Iterator it = entries.entrySet().iterator();
railo.runtime.type.Query qry=
new QueryImpl(new String[]{"class","id","custom","cfcPath","listenerCfcPath","startupMode","state","readOnly"}, 0, "entries");
Map.Entry entry;
GatewayEntry ge;
//Gateway g;
int row=0;
while(it.hasNext()){
row++;
entry=(Entry) it.next();
ge=(GatewayEntry) entry.getValue();
//g=ge.getGateway();
qry.addRow();
qry.setAtEL("class", row, ge.getClassName());
qry.setAtEL("id", row, ge.getId());
qry.setAtEL("listenerCfcPath", row, ge.getListenerCfcPath());
qry.setAtEL("cfcPath", row, ge.getCfcPath());
qry.setAtEL("startupMode", row, GatewayEntryImpl.toStartup(ge.getStartupMode(),"automatic"));
qry.setAtEL("custom", row, ge.getCustom());
qry.setAtEL("readOnly", row, Caster.toBoolean(ge.isReadOnly()));
qry.setAtEL("state",row,GatewayEngineImpl.toStringState(GatewayUtil.getState(ge), "failed"));
}
pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
}