This is the email from Daisy Cardeil at OCI that outlines what happened.
On Thursday, the BCA also informed our office that on March 26, 2012 the federal judge denied the return of your son and ruled that the child should stay in Brazil. The BCA informs our office that the OAG did not attend the hearing because the OAG received several correspondences indicating that the hearing had been cancelled based on repeated requests from the taking mother. The OAG also requested, prior to the hearing, to be notified as to when the hearing would be, but the OAG never received a response from the court. The OAG will now review the judge’s ruling, examine the case in order to file an appeal against the denial.
Why do you have to figure out a 'legal way' you just do it illegally. Yes this is illegal in Brazil, USA, Columbia, Haiti..... but doesn't mean it can't be done. I would say as a Judge he was smart to just break the law, he is a judge who is going to question him or what he does. Certainly not the US State Department.
To make it complete you then just rely on the lack of initiative and ethics of the attorneys working for the AGU who won't even bother to appeal a decision based on an illegal hearing. Brilliant.