if (_readOnlySessionProperties() != null && _readWriteSessionProperties() != null) {
if (_readOnlySessionProperties().length() > 0 && _readWriteSessionProperties().length() > 0) {
    public void setReadWriteForConnectionInDatabaseContext(boolean isReadWrite, EODatabaseContext dbc) {        if (_readOnlySessionProperties() != null && _readWriteSessionProperties() != null) {            log.debug("ReadOnly and ReadWrite Transactions enabled, trying to change");            try {                Connection connection = _getConnection(dbc);                if (connection != null) {                    if (isReadWrite) {                        _configureReadWrite(connection);                    } else {                        _configureReadOnly(connection);                    }                } else {                    log.warn("Cannot change readoonly/readwrite level since the connection for the editing context is null!!");                }            } catch (java.sql.SQLException e) {                log.error("Cannot change transaction level for databse, received " + e.getMessage(), e);            }         }    }