// }
// return jc;
// }
getJAXBContex = cc.implClass.method(JMod.PRIVATE, jaxbContextClass, "getJaxbContext");
getJAXBContex._throws(jaxbExceptionClass.boxify());
final JConditional ifBlockOutstream = getJAXBContex.body()._if(jcVar.eq(JExpr._null()));
ifBlockOutstream._then().assign(jcVar, jaxbContextClass.boxify().staticInvoke("newInstance").arg(JExpr.direct("Kml.class")));
getJAXBContex.body()._return(jcVar);
// private Marshaller createMarshaller() throws JAXBException {
// if (m == null) {
// m = getJAXBContext().createMarshaller();
// }
// return m;
// }
createMashaller = cc.implClass.method(JMod.PRIVATE, jaxbMarshallerClass, "createMarshaller");
createMashaller._throws(jaxbExceptionClass.boxify());
final JConditional ifBlockMarshaller = createMashaller.body()._if(mVar.eq(JExpr._null()));
ifBlockMarshaller._then().assign(mVar, JExpr._this().invoke(getJAXBContex).invoke("createMarshaller"));
ifBlockMarshaller._then().add(
mVar.invoke("setProperty").arg(jaxbMarshallerClass.boxify().staticRef("JAXB_FORMATTED_OUTPUT")).arg(JExpr.TRUE));
// m.setProperty("com.sun.xml.bind.namespacePrefixMapper", new PreferredMapper());
createMashaller.body()._return(mVar);
try {
final JDefinedClass createNestedPrefixCustomizer = createNestedPrefixCustomizer(cc);
ifBlockMarshaller._then().add(
mVar.invoke("setProperty").arg("com.sun.xml.bind.namespacePrefixMapper").arg(JExpr._new(createNestedPrefixCustomizer)));
} catch (final JClassAlreadyExistsException e) {
}
// private Unmarshaller createUnmarshaller() throws JAXBException {