public class ServersXMLLoader extends AbstractXMLLoader {
/** {@inheritDoc} */
@Override
public final void loadBody(XMLStreamWriter writer, IWebRequest request) throws Exception {
ServerRegistry serverRegistry = AppContext.getServerRegistry();
writer.writeStartElement("servers");
Server[] servers = serverRegistry.getServers();
int simulation = this.getParameterInt(request, "sim", 0);
if (simulation > 0 && servers.length > 0) {
Server[] sim = new Server[simulation + servers.length];
System.arraycopy(servers, 0, sim, 0, servers.length);
for (int i = servers.length; i < simulation + servers.length; i++) {