analysisWs.setReport(this.convertToRemoteReport(analysis.getReport()));
analysisWs.setResult(this.convetToRemoteAnalysisResult(analysis.getAnalysisResult()));
analysisWs.setFinalSignal(this.convertToRemoteFinalSignal(analysis.getFinalSegment()));
Iterator<SelectedSegment> segments = analysis.getSelectedSegments().iterator();
while (segments.hasNext()) {
SelectedSegmentWs selectedSegmentWs = this.convetToRemoteSelectedSegments(segments.next());
if (selectedSegmentWs != null) {
analysisWs.getSelectedSegments().add(selectedSegmentWs);
}
}
return analysisWs;