question: public void writeLinkedKml ( final String filename , final KmlType kml ) { if ( filename . equals ( "doc.kml" ) ) { throw new IllegalArgumentException ( "The filename 'doc.kml' is reserved for the primary kml." ) ; } if ( filename . equals ( "main.kml" ) ) { throw new IllegalArgumentException ( "The filename 'main.kml' is reserved for the main kml." ) ; } writeKml ( filename , kml ) ; }
target:  Adds the specified KML-object to the file.