use this utils to read and write java instnaces (objects)