With friction between Australia and Indonesia continuing to test relations it must have been with some relief in Canberra and Jakarta that an Indonesian court sentenced Javaid Mahmood, a 54-year-old from Pakistan, to seven years in jail for people smuggling.