For a middle-ranking power like Australia, the art of foreign policy necessitates a finely tuned ability to balance potentially conflicting interests. And that's particularly the case when it comes to maintaining friendly relations with the two giants of Asia - China and Japan.
Australia's relationships with Japan and China have so far been unaffected by the recent bout of feuding between those two countries. But that may be about to change: Australia is keen to reinvigorate its relations with Tokyo, through the 30th anniversary of the signing of its friendship treaty with Japan in June, and the election of a new Japanese prime minister this month.
Australian Foreign Minister Alexander Downer announced last month that Canberra was keen to explore closer defence ties, and to start talks on a free-trade agreement, with Tokyo.
The leading candidate to succeed Prime Minister Junichiro Koizumi when he retires this month is Chief Cabinet Secretary Shinzo Abe - who is keen to strengthen the Australia-Japan relationship. He talks of an 'enhanced strategic dialogue' with Australia, and wants to hold annual summits where countries that share the values of freedom and human rights - such as Australia, the United States and India - meet to discuss 'co-operation from a strategic point of view'.
While Mr Abe says he wants to smooth the troubled waters between Japan and China, he still refuses to say whether he will continue Mr Koizumi's practice of visiting the Yasukuni Shrine each year. If he does visit this controversial war memorial, then you can expect Beijing to remain hostile towards its near neighbour.
Australia just wishes the Yasukuni controversy would go away. As long as it remains on the agenda, there is always the risk of Beijing becoming irked at Canberra about a closer Japanese-Australian relationship.