Java framework for pickling types into target formats and vice versa