Filling a glass with juice

How to fill a glass without spilling due overflow.
Can the flow speed be controlled.