simplify from_javabin