* </pre>
*/
public void postInvoke() {
boolean txImported = (getExecutionContext(ec, work) != null && getExecutionContext(ec, work).getXid() != null);
try {
JavaEETransactionManager tm = getTransactionManager();
if (txImported) {
tm.release(getExecutionContext(ec, work).getXid());
}
} catch (WorkException ex) {
setException(ex);
} finally {
try {