ContentHandler ch = resource.setContentAsSAX();
Marshaller marshaller = getManager().getFactory().createMarshaller();
marshaller.marshal(pElement, ch);
col.storeResource(resource);
} catch (XMLDBException e) {
throw new PMException(e);
} catch (IllegalAccessException e) {
throw new PMException(e);
} catch (InstantiationException e) {
throw new PMException(e);
} catch (NoSuchMethodException e) {
throw new PMException(e);
} catch (InvocationTargetException e) {
throw new PMException(e.getTargetException());
} catch (JAXBException e) {
if (e instanceof PMException) {
throw (PMException) e;
} else {
throw new PMException(e);
}
}
}