Generic Java Object for exchanging data