Update: method in jre 1.6