public static JAXBContext initJAXBContext(Class<?>... classesToBeBound){
  try {
    return JAXBContext.newInstance(classesToBeBound);
  }
 catch (  JAXBException e) {
    throw ErrorCodes.translateException(e);
  }
}

public static JAXBContext initJAXBContext ( Class < ? > ... classesToBeBound ) { try { return JAXBContext . newInstance ( classesToBeBound ) ; } catch ( JAXBException e ) { throw ErrorCodes . translateException ( e ) ; } }
obtains a new instance of a jaxbcontext that recognizes the provided classes .
