/** * Return the context augmentation for this HLS, if any on the current * activity. * * @return a context object or null if no augmentation is necessary. */ public Context context () throws SystemException { ensureContextInitialised(); if (CONTEXT_IMPLE_CLASS != null) { try { SOAPContext ctx = (SOAPContext) CONTEXT_IMPLE_CLASS.newInstance(); ctx.initialiseContext(_coordManager.currentCoordinator()); return ctx; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } } else { throw new SystemException("Unable to create SOAPContext for Two Phase 1.1 service"); } }
/** * Return the context augmentation for this HLS, if any on the current * activity. * * @return a context object or null if no augmentation is necessary. */ public Context context () throws SystemException { ensureContextInitialised(); if (CONTEXT_IMPLE_CLASS != null) { try { SOAPContext ctx = (SOAPContext) CONTEXT_IMPLE_CLASS.newInstance(); ctx.initialiseContext(_coordManager.currentCoordinator()); return ctx; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } } else { throw new SystemException("Unable to create SOAPContext for Two Phase 1.1 service"); } }