Ball Bouncing problem

Hi:
In our game, we shoot a ball to hit other balls (The balls are connected to the ground with a mouse joint).

In most cases, we want the shooting ball keep bouncing if it hit other balls.

First we tried to set all the bubble's restitution to 1.0, but this will cause all the hanging balls keep bouncing which is not desired.

Then we set the restitution to 0.6, this is ok for the jointed balls since it will stopped bouncing after a while (it is jointed).
But the shooting ball will also be slowed down and even stopped after a while.

We want the shooting ball keep bouncing, so we tried to apply a extra force to the shooting ball after it hit other balls but cannot get satisfied result, the shooting ball's movement seems to be unnatural.

Any suggestions? thanks.
off the top of my head

In the beginContact of your collision Listener

if(!contact.isEnabled()) return;
if(contact.getFixtureA.userData == "Ball" && contact.getFixtureB.userData == null)
contact.getFixtureA.restitution = 0;
else if(contact.getFixtureA.userData == null && contact.getFixtureB.userData == "Ball")
contact.getFixtureB.restitution = 0;
else return;

If that doesn't work, you'll want to peg it into an array and then edit the restitution in the timestep

Original thread: https://box2d.org/forum/viewtopic.php?t=8796