LOGGER.debug("Unmarshalling " + path + " in package " + pkg); //$NON-NLS-1$ //$NON-NLS-2$
JAXBContext jc = JAXBContext.newInstance(pkg, loader);
Unmarshaller u = jc.createUnmarshaller();
InputStream istream = ClassLoader.getSystemResourceAsStream(path);
return u.unmarshal(istream);
}
static public OutputStream marshall(Object obj, String pkg,
ClassLoader loader) throws Exception {
LOGGER.debug("Marshalling " + obj + " in package " + pkg); //$NON-NLS-1$ //$NON-NLS-2$