Java tutorial
//package com.java2s; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; public class Main { public static JAXBContext createJaxbContext(Class<?> toBeBound) throws JAXBException { return JAXBContext.newInstance(toBeBound); } }