Update java cookbook