public void closeContext()
    {
        if (isLogedIn()) {
            try {
                if (!Context.isTMNoTransaction()) {
                    if (Context.isTMActive()) {
                        Context.commit();
                    } else {
                        Context.rollback();
                    }
                }
            } catch (final SecurityException e) {
                throw new RestartResponseException(new ErrorPage(e));
            } catch (final IllegalStateException e) {
                throw new RestartResponseException(new ErrorPage(e));
            } catch (final EFapsException e) {
                throw new RestartResponseException(new ErrorPage(e));
            }
        }
    }
public void closeContext()
    {
        if (isLogedIn()) {
            try {
                if (!Context.isTMNoTransaction()) {
                    if (Context.isTMActive()) {
                        Context.commit();
                    } else {
                        Context.rollback();
                    }
                }
            } catch (final SecurityException e) {
                throw new RestartResponseException(new ErrorPage(e));
            } catch (final IllegalStateException e) {
                throw new RestartResponseException(new ErrorPage(e));
            } catch (final EFapsException e) {
                throw new RestartResponseException(new ErrorPage(e));
            }
        }
    }
public void closeContext ( ) { if ( isLogedIn ( ) ) { try { if ( ! Context . isTMNoTransaction ( ) ) { if ( Context . isTMActive ( ) ) { Context . commit ( ) ; } else { Context . rollback ( ) ; } } } catch ( final SecurityException e ) { throw new RestartResponseException ( new ErrorPage ( e ) ) ; } catch ( final IllegalStateException e ) { throw new RestartResponseException ( new ErrorPage ( e ) ) ; } catch ( final EFapsException e ) { throw new RestartResponseException ( new ErrorPage ( e ) ) ; } } }
Method that closes the opened Context {@link #openContext()}, by
committing or rollback it.

@see #detach()
Method that closes the opened Context { @link #openContext () } by committing or rollback it .