@Override public void visit(DnaComponent component) { Map<URI, SequenceAnnotation> previous = current; current = new HashMap<URI, SequenceAnnotation>(); for (SequenceAnnotation annotation : component.getAnnotations()) { current.put(annotation.getURI(), annotation); } super.visit(component); current = previous; }