Why has this annotator a main method?