Declarative serialization framework for Java