String xml = service.listWorkflows();
Document doc = buildXML(xml);
throwExceptions(doc);
Element rootElem = doc.getRootElement();
ListSerializer serializer = new ListSerializer(
serializers.getJobInfoSerializer(), "workflowInfo");
List infoList = serializer.readList(rootElem);
return (WorkflowInfo [])infoList.toArray(new WorkflowInfo [] {});
}
catch(Exception e) {
throw new RemoteRuntimeException(e);