class JmsPoolJMSContext implements JMSContext, AutoCloseable {

    @Override
    public synchronized JMSContext createContext(int sessionMode) {
        if (connectionRefCount.get() == 0) {
            throw new IllegalStateRuntimeException("The Connection is closed");
        }

        validateSessionMode(sessionMode);

        connectionRefCount.incrementAndGet();

        return new JmsPoolJMSContext(connection, sessionMode, connectionRefCount);
    }

    public  JmsPoolJMSContext(JmsPoolConnection connection, int sessionMode);
    private  JmsPoolJMSContext(JmsPoolConnection connection, int sessionMode, AtomicLong connectionRefCount);

}