public void update(Element pElement) throws PMException {
TConnection conn = null;
try {
setJAXBContext(getManager().getFactory());
conn = getTConnection();
TXMLObjectAccessor accessor = conn.newXMLObjectAccessor(TAccessLocation.newInstance(collection), model);
accessor.update(getTXMLObject((InoObject) pElement));
} catch (TUpdateException e) {
throw new PMException(e);
} finally {
if (conn != null) { try { conn.close(); } catch (Throwable ignore) {} }
setJAXBContext(null);