some common JavaUtils