detectorAnnotation.setValue(InOutCurrentTest.DETECTOR_ANNOTATION_VALUE); detectorAnnotation.setNamespace(InOutCurrentTest.GENERAL_ANNOTATION_NAMESPACE); detector.linkAnnotation(detectorAnnotation); annotations.addCommentAnnotation(detectorAnnotation); instrument.addDetector(detector);