BipedMech entity = new BipedMech();
BipedMech entity = null; String attrStr; int attrVal;   if ( null == node ) { throw new IllegalArgumentException( "The BipedMech node is null." ); }   attrStr = node.getAttribute( "name" ); if ( !node.getName().equals( "class" ) || null == attrStr || !attrStr.equals( "BipedMech" ) ) { throw new IllegalStateException( "Not passed a BipedMech node." ); }     entity = new BipedMech();   Enumeration children = node.elements(); while ( children.hasMoreElements() ) { ParsedXML child = (ParsedXML) children.nextElement(); String childName = child.getName();   if ( null == childName ) {   }   else if ( childName.equals( "mascTurns" ) ) {   attrStr = child.getAttribute( "value" ); if ( null == attrStr ) { throw new IllegalStateException ( "Couldn't decode the mascTurns for a BipedMech unit." ); }   try { attrVal = Integer.parseInt( attrStr ); } catch ( NumberFormatException exp ) { throw new IllegalStateException ( "Couldn't get an integer from " + attrStr ); } entity.setMASCTurns( attrVal ); }   else if ( childName.equals( "mascUsed" ) ) {   attrStr = child.getAttribute( "value" ); if ( null == attrStr ) { throw new IllegalStateException ( "Couldn't decode mascUsed for a BipedMech unit." ); }   if ( attrStr.equals( "true" ) ) { entity.setMASCUsed( true ); } }  }
    public static Entity decode( ParsedXML node, Game game ) {        BipedMech entity = new BipedMech();        return entity;    }