recipes for general java lib