code: protected void afterInvoke(Method method, Object[] params) throws Exception {
          // Close the session
          if (session != null) {
              session.close();
          }
      }
docs: Called by interceptor after bean method has been invoked.
  <p/>
  It's important to call base method in override-method, since it closes SQL session.
  
  @param method Method, which has just been invoked.
  @param params Method params.
  @throws Exception