particles, and the predicted data are consistent with recent literature. We demonstrate that the sidewalls of the studied cavity contribute decisively to the repulsive Casimir force between the system and the nearby top surface of the cavity. Finally, we provide evidence that the medium embedded into the studied cavity (and especially its permittivity) can change the intensity of the Casimir force, while its repulsive nature, once established (owing to favorable geometrical features), remains quite robust.