package Savage.AircraftHelicopters.MH53eSeaDragonUnitedStates;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry2D.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Interpolation.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> MH-53E Sea Dragon constructed with inlines of the various parts including fuselage, engines, EAPS, main and tail rotor heads. Notice the 5 degree forward tilt of the main rotor head. Viewpoints and background borrowed from Capt Allen A. Harper's CH-46 model. </p>
 <p> Related links: Catalog page <a href="../../../../AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragonIndex.html" target="_blank">MH53ESeaDragon</a>,  source <a href="../../../../AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragon.java">MH53ESeaDragon.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragon.x3d">MH53ESeaDragon.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> MH-53E Sea Dragon constructed with inlines of the various parts including fuselage, engines, EAPS, main and tail rotor heads. Notice the 5 degree forward tilt of the main rotor head. Viewpoints and background borrowed from Capt Allen A. Harper's CH-46 model. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> LT Terry D. Norbraten, USN </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 19 March 2004 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 17 June 2020 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ac/h-53.htm" target="_blank">https://www.fas.org/man/dod-101/sys/ac/h-53.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ac/mh-53e-wasp-dr5.jpg" target="_blank">https://www.fas.org/man/dod-101/sys/ac/mh-53e-wasp-dr5.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="http://www.history.navy.mil/planes/mh-53e.jpg" target="_blank">http://www.history.navy.mil/planes/mh-53e.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="http://digilander.libero.it/31ATSG/MH-53E%20163057-41.jpg" target="_blank">http://digilander.libero.it/31ATSG/MH-53E%20163057-41.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> Image </i> </td>
			<td> <a href="http://www.ndu.edu/nwc/nwcCLIPART/US_NAVY/Equipment/Helicopters/MH-53E(Sea-Dragon)/MH53ESeaDragon01.jpg" target="_blank">http://www.ndu.edu/nwc/nwcCLIPART/US_NAVY/Equipment/Helicopters/MH-53E(Sea-Dragon)/MH53ESeaDragon01.jpg</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> Sikorsky MH-53E Sea Dragon Multi-mission helicopter for the U.S. Navy. </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragon.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragon.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.2, <a href="https://www.web3d.org/x3d/tools/X3D-Edit" target="_blank">https://www.web3d.org/x3d/tools/X3D-Edit</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../AircraftHelicopters/MH53ESeaDragonUnitedStates/../../license.html">../../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author LT Terry D. Norbraten, USN
 */

public class MH53ESeaDragon
{
	/** Default constructor to create this object. */
	public MH53ESeaDragon ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_0)
  .setHead(new head()
    .addComponent(new component().setName("Geometry2D").setLevel(1))
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("MH53ESeaDragon.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("MH-53E Sea Dragon constructed with inlines of the various parts including fuselage, engines, EAPS, main and tail rotor heads. Notice the 5 degree forward tilt of the main rotor head. Viewpoints and background borrowed from Capt Allen A. Harper's CH-46 model."))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("LT Terry D. Norbraten, USN"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("19 March 2004"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("17 June 2020"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ac/h-53.htm"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("https://www.fas.org/man/dod-101/sys/ac/mh-53e-wasp-dr5.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("http://www.history.navy.mil/planes/mh-53e.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("http://digilander.libero.it/31ATSG/MH-53E%20163057-41.jpg"))
    .addMeta(new meta().setName(meta.NAME_IMAGE      ).setContent("http://www.ndu.edu/nwc/nwcCLIPART/US_NAVY/Equipment/Helicopters/MH-53E(Sea-Dragon)/MH53ESeaDragon01.jpg"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("Sikorsky MH-53E Sea Dragon Multi-mission helicopter for the U.S. Navy."))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESeaDragon.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("MH53ESeaDragon.x3d"))
    .addChild(new Group()
      .addChild(new Transform("No3EAPS").setRotation(0.0,1.0,0.0,3.1416).setScale(0.8,0.8,0.8).setTranslation(-0.97,0.75,2.3)
        .addChild(new Transform().setRotation(1.0,0.0,0.0,1.571)
          .addChild(new Inline("EAPS").setUrl(new String[] {"MH53EEAPS.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EEAPS.x3d","MH53EEAPS.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EEAPS.wrl"}))))
      .addChild(new Transform("No2EAPS").setRotation(1.0,0.0,0.0,-1.571).setScale(0.75,0.75,0.75).setTranslation(0.43,1.46,0.75)
        .addChild(new Transform().setRotation(0.0,0.0,1.0,0.349)
          .addChild(new Inline().setUSE("EAPS"))))
      .addChild(new Transform("No1EAPS").setRotation(1.0,0.0,0.0,3.1416).setScale(0.8,0.8,0.8).setTranslation(0.97,0.9,2.3)
        .addChild(new Transform().setRotation(1.0,0.0,0.0,1.571)
          .addChild(new Inline().setUSE("EAPS"))))
      .addChild(new Transform("MainRotor").setRotation(1.0,0.0,0.0,0.087).setTranslation(0.0,2.28,0.5)
        .addChild(new Inline("MainRotorHead").setUrl(new String[] {"MH53EMainRotorHead.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EMainRotorHead.x3d","MH53EMainRotorHead.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EMainRotorHead.wrl"}))
        .addChild(new TimeSensor("Clock1").setCycleInterval(.04).setLoop(true))
        .addChild(new OrientationInterpolator("MainRotorPath").setKey(new double[] {0.0,0.50,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,0.0,0.0,1.0,0.0,3.1416,0.0,1.0,0.0,6.283}))))
      .addChild(new ROUTE().setFromNode("Clock1").setFromField("fraction_changed").setToNode("MainRotorPath").setToField("set_fraction"))
      .addChild(new ROUTE().setFromNode("MainRotorPath").setFromField("value_changed").setToNode("MainRotor").setToField("set_rotation"))
      .addChild(new Inline("Fuselage").setUrl(new String[] {"MH53EFuselage.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EFuselage.x3d","MH53EFuselage.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EFuselage.wrl"}))
      .addChild(new Transform("No1InputDriveShaft").setRotation(0.0,0.0,1.0,-1.92).setTranslation(0.7,1.1,1.2)
        .addChild(new Transform().setRotation(1.0,0.0,0.0,0.785)
          .addChild(new Shape("Shaft")
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.208,.388,.463).setEmissiveColor(.0471,.0863,0.0)))
            .setGeometry(new Cylinder().setHeight(0.82).setRadius(.07)))))
      .addChild(new Transform("No3InputDriveShaft").setRotation(0.0,0.0,1.0,1.92).setTranslation(-0.7,1.1,1.2)
        .addChild(new Transform().setRotation(1.0,0.0,0.0,0.785)
          .addChild(new Shape().setUSE("Shaft"))))
      .addChild(new Transform("No1Engine").setRotation(0.0,0.0,1.0,0.785).setScale(1.0,1.1,0.8).setTranslation(2.0,-0.35,0.65)
        .addChild(new Inline("Engine").setUrl(new String[] {"MH53EEngine.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EEngine.x3d","MH53EEngine.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53EEngine.wrl"})))
      .addChild(new Transform("No3Engine").setRotation(0.0,0.0,1.0,-0.785).setScale(1.0,1.1,0.8).setTranslation(-2.43,0.1,0.65)
        .addChild(new Inline().setUSE("Engine")))
      .addChild(new Transform("No2EngineAccess").setRotation(0.0,1.0,0.0,1.571).setTranslation(0.52,1.3,-0.9)
        .addChild(new Transform().setRotation(0.0,0.0,1.0,1.571)
          .addChild(new Shape("Panel")
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(0.2,0.3,0.4).setEmissiveColor(0.05,0.09,0.0)))
            .setGeometry(new Rectangle2D().setSize(0.7,1.3)))))
      .addChild(new Transform("No2EngineExhaust").setRotation(0.0,1.0,0.0,-0.349).setScale(1.0,0.9,1.0).setTranslation(0.3,0.42,-1.6)
        .addChild(new Shape("Duct")
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.208,.388,.463).setEmissiveColor(.0471,.0863,0.0)))
          .setGeometry(new Extrusion().setCreaseAngle(1.05).setCrossSection(new MFVec2f(new double[] {0.0,.8,0.0,-.2,-.191342,-.16194,-.353553,-.053553,-.46194,.108658,-.5,.3,-.46194,.491342,-.353553,.653553,-.191342,.76194,0.0,.8})).setEndCap(false).setScale(new MFVec2f(new double[] {.7,.7,.6791,.6791,.6143,.6143,.6,.6,.595,.595,.5,.5,.6,.6})).setSolid(false).setSpine(new MFVec3f(new double[] {0.0,1.1486,-.2,0.0,1.1486,-.3,.00443504,1.1486,-.72152,.00139496,1.1486,-.85279,.00839493,1.1486,-.867751,.1,1.1486,-1.1,.198605,1.1486,-1.15})))))
      .addChild(new Transform("PortSponson").setScale(1.0,0.8,1.0).setTranslation(1.555,-1.05,-1.2)
        .addChild(new Inline("Sponson").setUrl(new String[] {"MH53ESponson.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESponson.x3d","MH53ESponson.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ESponson.wrl"})))
      .addChild(new Transform("StarboardSponson").setScale(1.0,0.8,1.0).setTranslation(-1.55,-1.05,-1.2)
        .addChild(new Inline().setUSE("Sponson")))
      .addChild(new Transform("RefuelingProbe").setRotation(1.0,0.0,0.0,1.571).setTranslation(-0.5,-0.5,4.9)
        .addChild(new Shape("Probe")
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.208,.388,.463).setEmissiveColor(.0471,.0863,0.0)))
          .setGeometry(new Cylinder().setHeight(1.8).setRadius(0.1)))
        .addChild(new Transform().setScale(1.0,1.6,1.0).setTranslation(0.0,0.89,0.0)
          .addChild(new Shape("Plug")
            .setAppearance(new Appearance()
              .setMaterial(new Material()))
            .setGeometry(new Sphere().setRadius(0.09)))))
      .addChild(new Transform("TripodGear").setTranslation(0.0,-0.45,0.0)
        .addChild(new Inline("LandingGear").setUrl(new String[] {"MH53ELandingGear.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ELandingGear.x3d","MH53ELandingGear.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ELandingGear.wrl"})))
      .addChild(new Transform().setRotation(0.0,0.0,1.0,-1.92).setScale(0.25,0.25,0.25).setTranslation(1.3,3.25,-10.8)
        .addChild(new Transform("TailRotorHead")
          .addChild(new Inline("TailRotor").setUrl(new String[] {"MH53ETailRotorHead.x3d","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ETailRotorHead.x3d","MH53ETailRotorHead.wrl","https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/MH53ESeaDragonUnitedStates/MH53ETailRotorHead.wrl"}))
          .addChild(new TimeSensor("Clock2").setCycleInterval(0.15).setLoop(true))
          .addChild(new OrientationInterpolator("TailRotorPath").setKey(new double[] {0.0,0.50,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,0.0,0.0,1.0,0.0,-3.1416,0.0,1.0,0.0,-6.283}))))
        .addChild(new ROUTE().setFromNode("Clock2").setFromField("fraction_changed").setToNode("TailRotorPath").setToField("set_fraction"))
        .addChild(new ROUTE().setFromNode("TailRotorPath").setFromField("value_changed").setToNode("TailRotorHead").setToField("set_rotation"))))
    .addChild(new Group("Viewpoints")
      .addChild(new Viewpoint().setDescription("MH-53E Right wing, level").setOrientation(0.0,1.0,0.0,-1.57).setPosition(-15.0,0.0,0.0))
      .addChild(new Viewpoint().setDescription("MH-53E Bottom, up").setOrientation(1.0,0.0,0.0,1.57).setPosition(0.0,-15.0,-1.0))
      .addChild(new Viewpoint().setDescription("MH-53E Left wing, level").setOrientation(0.0,1.0,0.0,1.57).setPosition(15.0,0.0,0.0))
      .addChild(new Viewpoint().setDescription("MH-53E Rear, level").setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,0.0,-25.0))
      .addChild(new Transform().setRotation(0.0,0.0,1.0,3.1416)
        .addChild(new Viewpoint().setDescription("MH-53E Rear, angle down").setOrientation(1.0,0.0,0.0,2.356).setPosition(0.0,-20.0,-20.0)))
      .addChild(new Viewpoint().setDescription("MH-53E Top, down").setOrientation(1.0,0.0,0.0,-1.57).setPosition(0.0,25.0,0.0))
      .addChild(new Viewpoint().setDescription("MH-53E Front, level").setPosition(0.0,0.0,15.0))
      .addChild(new Viewpoint().setDescription("MH-53E Front, angle down").setOrientation(1.0,0.0,0.0,-0.78).setPosition(0.0,20.0,20.0))
      .addChild(new Viewpoint().setDescription("MH-53E Left, level, front @ 45").setOrientation(0.0,1.0,0.0,0.785).setPosition(10.0,1.0,10.0))
      .addChild(new Viewpoint().setDescription("MH-53E Right, level, front @ 45").setOrientation(0.0,-1.0,0.0,0.785).setPosition(-10.0,1.0,10.0))
      .addChild(new Viewpoint().setDescription("MH-53E Right, level, rear @ 45").setOrientation(0.0,-1.0,0.0,2.356).setPosition(-10.0,1.0,-10.0))
      .addChild(new Viewpoint().setDescription("MH-53E Left, level, rear @ 45").setOrientation(0.0,1.0,0.0,2.356).setPosition(10.0,1.0,-10.0))));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return MH53ESeaDragon model
	 */
	public X3D getX3dModel()
	{	  
		return x3dModel;
	}
	   
    /** 
     * Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
     * @param args array of input parameters, provided as arguments
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-">X3D.handleArguments(args)</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--">X3D.validationReport()</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html">CommandLine</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE">CommandLine.USAGE</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html">ConfigurationProperties</a>
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new MH53ESeaDragon().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) && (args.length > 0);
        boolean validate = true; // default
        boolean argumentsLoadNewModel = false;
        String  fileName = new String();

        if (args != null)
        {
                for (String arg : args)
                {
                        if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
                        {
                                validate = true; // making sure
                        }
                        if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"Savage.AircraftHelicopters.MH53eSeaDragonUnitedStates.MH53ESeaDragon\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
        else if (hasArguments) // if no arguments provided, this method produces usage warning
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("Savage.AircraftHelicopters.MH53eSeaDragonUnitedStates.MH53ESeaDragon self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

                // experimental: test X3DJSAIL output files
                // AircraftHelicopters/MH53eSeaDragonUnitedStates/MH53ESeaDragon_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "AircraftHelicopters/MH53eSeaDragonUnitedStates/MH53ESeaDragon_JavaExport.x3d"; 
                String filenameX3DV = "AircraftHelicopters/MH53eSeaDragonUnitedStates/MH53ESeaDragon_JavaExport.x3dv"; 
                String filenameJSON = "AircraftHelicopters/MH53eSeaDragonUnitedStates/MH53ESeaDragon_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
