ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
dest.send(constructor.createDocument());
dest.send(constructor.createElement(AdminXML.NM_APPS));
while (apps.hasNext()) {
RemoteApp app = apps.next();
app.marshall();;
DocumentSource.generate(app.getElement(),false,dest);
}
dest.send(constructor.createElementEnd(AdminXML.NM_APPS));
dest.send(constructor.createDocumentEnd());
out.flush();