ByteArrayOutputStream outStream = new ByteArrayOutputStream();
OFSNListHandler handler = getListHandler(cmd, cfg.getClassName());
File[] fileList = handler.getListing(realPath);
generateOFSNXml(fileList, cfg, outStream);
xmlQuery.getResults().add(
new Result(cmdId, XML_MIME_TYPE, null, cmdId, Collections.EMPTY_LIST,
outStream.toString()));
} else if (isGetCmd(cmd)) {
OFSNGetHandler handler = getGetHandler(cmd, cfg.getClassName());
String rtAndPath = cmd + CMD_SEPARATOR + realPath;
String mimeType;