Exploring the Exotic 5Be Nucleus in heavy-ion collisions