public JAXBContextResolver() throws Exception { Class[] typesArr = new Class[]{ZPath.class, ZStat.class, ZChildrenJSON.class}; typesSet = new HashSet<Class>(Arrays.asList(typesArr)); context = new JSONJAXBContext( JSONConfiguration.mapped() .arrays("children") .nonStrings("czxid") .nonStrings("mzxid") .nonStrings("ctime") .nonStrings("mtime") .nonStrings("version") .nonStrings("cversion") .nonStrings("aversion") .nonStrings("ephemeralOwner") .nonStrings("dataLength") .nonStrings("numChildren") .nonStrings("pzxid") .build(), typesArr); }