class Context {

    @Override
    protected void finalize() throws Throwable
    {
        /*
         * If a context is garbage-collected, we roll back and free up the
         * database connection if there is one.
         */
        if (dbConnection != null && dbConnection.isTransActionAlive())
        {
            abort();
        }

        super.finalize();
    }

    protected  Context(EventService eventService, DBConnection dbConnection);
    public  Context();
    public  Context(Mode mode);

}