}
this.writeBean(writer, service);
writer.writeEndElement();
}
}
SubscriptionRegistry subscriptionRegistry = AppContext.getSubscriptionRegistry();
writer.writeStartElement("subscriptions");
Subscription[] subscriptions = subscriptionRegistry.getSubscriptions();
int simulation = this.getParameterInt(request, "sim", 0);
if (simulation > 0) {
Subscription[] sim = new Subscription[simulation + subscriptions.length];
System.arraycopy(subscriptions, 0, sim, 0, subscriptions.length);
for (int i = subscriptions.length; i < simulation; i++) {