for (final String commandName : catalog.getCommandNames()) {
final WebRequestCommand<?, ?> command = (WebRequestCommand<?, ?>) commandService.getCommand(new CommandKey(catalogName, commandName));
resources.getResource().add(command.createCommandResourceWadl());
if (command.hasXmlSchema()) {
final Resource resource = new Resource();
resource.setPath(commandName + ".xsd");
resources.getResource().add(resource);
final Doc doc = new Doc();
doc.getContent().add("The command's XML schema is returned");
resource.getDoc().add(doc);
final Method method = new Method();
method.setName("GET");
resource.getMethodOrResource().add(method);
final Response response = new Response();
method.getResponse().add(response);
response.getStatus().add(Long.valueOf(HttpStatus.OK_200));
final Representation representation = new Representation();