The best way to combat pirates is to deny them access to their chosen prey, i.e. fend them off with the necessary deployment of ordnance.
Their is no need to re-invent the wheel - there is a century-old method known to all and sundry in dealing with piracy, it just needs to be employed properly and without the involvement of tax-payer funded human rights lawyers.
The situation off the Somali coast is a straightforward case of deploying maritime force, but only when vessels are involved that fly the flag of the countries providing naval protection. We certainly do not need to protect any ships flying flags of convenience.