Question: How do you make www.homepage.com/app/shoppingcart look like www.homepage.com/shoppingcart -

how to rewrite the URL-s 

is there a url rewrite plugin for cakephp that does such things

Answer: 
The functionality of the two statements is exactly the same as long as an exception is not thrown -- the only difference between the two is that the `finally` block will be executed if an exception is thrown in the try block.
To quote the javadoc:

> 
> Throws InterruptedException - if another thread has interrupted the current thread.
> 
> 
> 

When your thread is not interrupted the two blocks of code are qequivalent, but you cannot know whether you will be interrupted or not, so to be sure your code is correct in both circumstances you should handle the `InterruptedException` (to either ignore or sleep again of not enough time has passed.)