Vector newSprites = new Vector(entitySprites); Hashtable newSpriteIds = new Hashtable(entitySpriteIds);
    public void redrawEntity(Entity entity) {        EntitySprite sprite = (EntitySprite)entitySpriteIds.get(new Integer(entity.getId()));                if (sprite != null) {            entitySprites.removeElement(sprite);        }                sprite = new EntitySprite(entity);        entitySprites.addElement(sprite);        entitySpriteIds.put(new Integer(entity.getId()), sprite);                repaint(100);    }