plz help to OverCome Time Limit Exceed on max-flow problem using dinic's algo

Hi,I am trying to solve this FASTFLOW problem on Spoj.

I have implemented simple Dinic’s algorithm using java,but am getting TLE.Here is the solution link.
Am I doing anything wrong?

Please help!!