Enumeration entities = client.getSelectedEntities
Enumeration<Entity> entities = client.getSelectedEntities
    private void unloadStranded() {        Vector stranded = new Vector();        String[] names = null;        Entity entity = null;        Entity transport = null;        // Let the player know what's going on.        setStatusBarText            (Messages.getString("MovementDisplay.AllPlayersUnload")); //$NON-NLS-1$        // Collect the stranded entities into the vector.        // TODO : get a better interface to "game" and "turn"        Enumeration entities = client.getSelectedEntities            ( new EntitySelector() {                    private final IGame game =                        MovementDisplay.this.client.game;                    private final GameTurn turn =                        MovementDisplay.this.client.game.getTurn();                    private final int ownerId =                        MovementDisplay.this.client.getLocalPlayer().getId();                    public boolean accept( Entity entity ) {                        if ( turn.isValid( ownerId, entity, game ) )                            return true;                        return false;                    }                } );        while ( entities.hasMoreElements() ) {            stranded.addElement( entities.nextElement() );        }        // Construct an array of stranded entity names        names = new String[ stranded.size() ];        for ( int index = 0; index < names.length; index++ ) {            entity = (Entity) stranded.elementAt(index);            transport = client.getEntity( entity.getTransportId() );            String buffer;            if ( null == transport ) {                buffer = entity.getDisplayName();            }            else {                buffer = Messages.getString("MovementDisplay.EntityAt", new Object[]{entity.getDisplayName(),transport.getPosition().getBoardNum()}); //$NON-NLS-1$             }            names[index] = buffer.toString();        }        // Show the choices to the player        int[] indexes = clientgui.doChoiceDialog( Messages.getString("MovementDisplay.UnloadStrandedUnitsDialog.title"),  //$NON-NLS-1$                                               Messages.getString("MovementDisplay.UnloadStrandedUnitsDialog.message"), //$NON-NLS-1$                                               names );        // Convert the indexes into selected entity IDs and tell the server.        int[] ids = null;        if ( null != indexes ) {            ids = new int[indexes.length];            for ( int index = 0; index < indexes.length; index++ ) {                entity = (Entity) stranded.elementAt(index);                ids[index] = entity.getId();            }        }        client.sendUnloadStranded( ids );    }