code: private static <T> void notifyPostInvoke(EJBRequestCollaborator<T> collaborator, EJBRequestData request, Object preInvokeData) throws CSIException {
          try {
              @SuppressWarnings("unchecked")
              T uncheckedCookie = (T) preInvokeData;
              collaborator.postInvoke(request, uncheckedCookie);
          } catch (RuntimeException ex) {
              throw ex;
          } catch (CSIException ex) {
              throw ex;
          } catch (Exception ex) {
              throw new CSIException("", ex);
          }
      }
docs: Call {@link EJBRequestCollaborator#postInvoke}. Handles generics casting
  and CSIException handling.