int simulation = this.getParameterInt(request, "sim", 0);
if (simulation > 0) {
Service[] sim = new Service[simulation + services.length];
System.arraycopy(services, 0, sim, 0, services.length);
for (int i = services.length; i < simulation + services.length; i++) {
sim[i] = new SessionService("sim " + i);
}
services = sim;
}
Paging paging = this.writePagingAttributes(writer, request, services.length, "");
// String showSessionsParameter = request.getParameter("showsessions");