question: private void generateLocator ( DistributionLocatorConfig config ) throws SAXException { AttributesImpl atts = new AttributesImpl ( ) ; atts . addAttribute ( "" , "" , PORT , "" , String . valueOf ( config . getPort ( ) ) ) ; handler . startElement ( "" , LOCATOR , LOCATOR , atts ) ; generateEntityConfig ( config ) ; handler . endElement ( "" , LOCATOR , LOCATOR ) ; }
target:  Generates XML for a locator