* @param request The HttpServletRequest for which the description should be created
*/
private void createInternalDescription(HttpServletRequest request) throws XPathException, SAXException, PermissionDeniedException, NotFoundException
{
// 1) Get the XQWS
final BinaryDocument docXQWS = getXQWS(broker, XQWSPath);
if(docXQWS == null)
{
throw new NotFoundException("Resource " + request.getRequestURL().toString() + " not found");
}
xqwsFileURI = docXQWS.getFileURI();
xqwsCollectionURI = docXQWS.getCollection().getURI();
final byte[] xqwsData = getXQWSData(broker, docXQWS);
// 2) Store last modified date
lastModifiedXQWS = docXQWS.getMetadata().getLastModified();
// 3) Get the XQWS Namespace
xqwsNamespace = getXQWSNamespace(xqwsData);
// 4) Compile a Simple XQuery to access the module
final CompiledXQuery compiled = XQueryIncludeXQWS(broker, docXQWS.getFileURI(), xqwsNamespace, docXQWS.getCollection().getURI());
// 5) Inspect the XQWS and its function signatures and create a small XML document to represent it
modXQWS = compiled.getContext().getModule(xqwsNamespace.getNamespaceURI());
docXQWSDescription = describeWebService(modXQWS, xqwsFileURI, request, XQWSPath, null, null);
}