Collection col = getXmlDbCollection();
String id = getId(pElement);
XMLResource resource = (XMLResource) col.createResource(id, XMLResource.RESOURCE_TYPE);
col.removeResource(resource);
} catch (XMLDBException e) {
throw new PMException(e);
} catch (IllegalAccessException e) {
throw new PMException(e);
} catch (InstantiationException e) {
throw new PMException(e);
} catch (InvocationTargetException e) {
throw new PMException(e.getTargetException());
} catch (NoSuchMethodException e) {
throw new PMException(e);
} catch (JAXBException e) {
if (e instanceof PMException) {
throw (PMException) e;
} else {
throw new PMException(e);
}
}
}