spitfire code to java