Java toolkit for common functions