protected final AsynchronousCRUD createAsynchronousCRUD(final ServletRequest request) throws TechnicalException { AsynchronousHibernateCRUD asyncCRUD = new AsynchronousHibernateCRUD(); try { asyncCRUD.setSession(SessionInView.getSession(request)); } catch (IllegalStateException isExc) { assert false : "IllegalStateException; should not happen, " //$NON-NLS-1$ + "asyncCRUD is new"; //$NON-NLS-1$ } // IllegalStateException; should not happen, this is new return asyncCRUD; }
protected final void releaseAsynchronousCRUD(final AsynchronousCRUD asyncCRUD) { ((AsynchronousHibernateCRUD) asyncCRUD).setSession(null); }