Use java cookbook