Generic and extensible format handling Java API