A simple template class i made that has 2 methods, serialize receives an object and returns an byte[] and desirialize receives byte[] and returns an object.