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