I am just pouring my vies herein as what i think over the issue. a country is bound to follow its laws of the land thus judges too are enveloped by the laws of the country. they cant go against the laws even if a maxims say otherwise.
maxims are not always appropiate to be roped in while adjudication since they may go against the principal of natural or fair justice.
about international laws we can take the example like one is free to do whatever he wishes inside his home bt as soon as it starts creating nuisance/ problems to others, he is forced to stop that activity.
we have international laws /treaties and all the members /siganatories are bound to follow the same and breach of the same attracts actions under the ICJ.