final MemTreeBuilder builderWebserviceDoc = new MemTreeBuilder(broker.getXQueryService().newContext(AccessContext.REST));
builderWebserviceDoc.startDocument();
builderWebserviceDoc.startElement(new QName("webservice", null, null), null);
builderWebserviceDoc.startElement(new QName("name", null, null), null);
builderWebserviceDoc.characters(xqwsFileUri.toString().substring(0, xqwsFileUri.toString().indexOf(WEBSERVICE_MODULE_EXTENSION)));
builderWebserviceDoc.endElement();
builderWebserviceDoc.startElement(new QName("description", null, null), null);
builderWebserviceDoc.characters(modXQWS.getDescription());
builderWebserviceDoc.endElement();
builderWebserviceDoc.startElement(new QName("host", null, null), null);
builderWebserviceDoc.characters(request.getServerName() + ":" + request.getServerPort());