} }
} else if ( Mech.STEALTH.equals(m.getType().getInternalName()) && m.getLinked() == null ) {   for ( Enumeration equips = ent.getMisc(); equips.hasMoreElements(); ) { Mounted mEquip = (Mounted) equips.nextElement(); MiscType mtype = (MiscType) mEquip.getType(); if ( mtype.hasFlag(MiscType.F_ECM) ) { m.setLinked( mEquip ); break; } } }  }
    private void postLoadInit(Entity ent) throws EntityLoadingException {        // Link Artemis IV fire-control systems to their missle racks.        for (Enumeration e = ent.getMisc(); e.hasMoreElements(); ) {            Mounted m = (Mounted)e.nextElement();            if (m.getType().hasFlag(MiscType.F_ARTEMIS) && m.getLinked() == null) {                                // link up to a weapon in the same location                for (Enumeration e2 = ent.getWeapons(); e2.hasMoreElements(); ) {                    Mounted mWeapon = (Mounted)e2.nextElement();                    WeaponType wtype = (WeaponType)mWeapon.getType();                                        // only srm and lrm are valid for artemis                    if (wtype.getAmmoType() != AmmoType.T_LRM && wtype.getAmmoType() != AmmoType.T_SRM) {                        continue;                    }                                        // already linked?                    if (mWeapon.getLinkedBy() != null) {                        continue;                    }                                        // check location                    if (mWeapon.getLocation() == m.getLocation()) {                        m.setLinked(mWeapon);                        break;                    }                    // also, mechs have a special location rule                    else if (ent instanceof Mech && m.getLocation() == Mech.LOC_HEAD &&                                mWeapon.getLocation() == Mech.LOC_CT) {                        m.setLinked(mWeapon);                        break;                    }                }                                if (m.getLinked() == null) {                    // huh.  this shouldn't happen                    throw new EntityLoadingException("Unable to match Artemis to launcher");                }            }        }        // Add BattleArmorHandles to OmniMechs.        if ( ent.isOmni() && ent instanceof Mech ) {            ent.addTransporter( new BattleArmorHandles() );        }    } // End private void postLoadInit(Entity) throws EntityLoadingException