Here you can find the source of getJaxbContext(Class... classes)
public static JAXBContext getJaxbContext(Class... classes)
//package com.java2s; //License from project: Apache License import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; public class Main { public static JAXBContext getJaxbContext(Class... classes) { try {//from w w w.j av a 2 s .c om return JAXBContext.newInstance(classes); } catch (JAXBException e) { throw new RuntimeException(e.getMessage(), e); } } }