* the exception
*/
private void uploadLogAndDumpFiles(XMLStreamWriter writer, IWebRequest request) throws Exception {
String serviceName = request.getParameter("service");
if (serviceName == null) {
throw new WebCommandException("service is missing");
}
String sdate = request.getParameter("date");
Date date = DateTimeUtility.getCurrentDate();
if (sdate != null && sdate.isEmpty() == false) {
date = WebUtil.getXMLDateFromString(sdate);
}
ServiceRegistry serviceRegistry = AppContext.getServiceRegistry();
Service service = serviceRegistry.getService(serviceName);
if (service == null) {
throw new WebCommandException("service " + serviceName + " not found");
}
if (service instanceof FileService == false && service instanceof CascadedFileService == false) {
throw new WebCommandException("service " + serviceName + " is not a file or cascaded file service");
}
writer.writeStartElement("service");
writer.writeCharacters(serviceName);
writer.writeEndElement();
writer.writeStartElement("date");