question: private void generateEntityConfig ( ManagedEntityConfig config ) throws SAXException { String host = config . getHost ( ) ; if ( host != null ) { handler . startElement ( "" , HOST , HOST , EMPTY ) ; handler . characters ( host . toCharArray ( ) , 0 , host . length ( ) ) ; handler . endElement ( "" , HOST , HOST ) ; } String remoteCommand = config . getRemoteCommand ( ) ; if ( remoteCommand != null ) { handler . startElement ( "" , REMOTE_COMMAND , REMOTE_COMMAND , EMPTY ) ; handler . characters ( remoteCommand . toCharArray ( ) , 0 , remoteCommand . length ( ) ) ; handler . endElement ( "" , REMOTE_COMMAND , REMOTE_COMMAND ) ; } String workingDirectory = config . getWorkingDirectory ( ) ; if ( workingDirectory != null ) { handler . startElement ( "" , WORKING_DIRECTORY , WORKING_DIRECTORY , EMPTY ) ; handler . characters ( workingDirectory . toCharArray ( ) , 0 , workingDirectory . length ( ) ) ; handler . endElement ( "" , WORKING_DIRECTORY , WORKING_DIRECTORY ) ; } String productDirectory = config . getProductDirectory ( ) ; if ( productDirectory != null ) { handler . startElement ( "" , PRODUCT_DIRECTORY , PRODUCT_DIRECTORY , EMPTY ) ; handler . characters ( productDirectory . toCharArray ( ) , 0 , productDirectory . length ( ) ) ; handler . endElement ( "" , PRODUCT_DIRECTORY , PRODUCT_DIRECTORY ) ; } }
target:  Generates XML for attributes common to all managed entities.