Enumeration equipment = unit.getMisc();
Iterator equipment = unit.getMisc().iterator();
    public final boolean canLoad( Entity unit ) {        // Assume that we can carry the unit.        boolean result = true;        // Only BattleArmor can be carried in BattleArmorHandles.        if ( !(unit instanceof BattleArmor) ) {            result = false;        }        // We must have enough space for the new troopers.        else if ( null != this.troopers ) {            result = false;        }        // The unit must have a Boarding Claw.        else {            // Walk through the unit's miscellaneous equipment.            // Assume we don't find it.            // Stop looking if we do find it.            Enumeration equipment = unit.getMisc();            result = false;            while ( !result && equipment.hasMoreElements() ) {                Mounted mount = (Mounted) equipment.nextElement();                EquipmentType equip = mount.getType();                result = equip.getInternalName().equals                    ( this.getBoardingEquipment() )                    && (!equip.hasModes()                         || mount.curMode().equals( "On" )); //$NON-NLS-1$            }        }        // Return our result.        return result;    }