code: public Connection getJdbcConnection(boolean readOnly) throws RepositoryException
     {
        try
        {
           Connection conn = dbDataSource.getConnection();
  
           if (readOnly)
           {
              // set this feature only if it asked
              conn.setReadOnly(readOnly);
           }
  
           return conn;
        }
        catch (SQLException e)
        {
           String err =
              "Error of JDBC connection open. SQLException: " + e.getMessage() + ", SQLState: " + e.getSQLState()
                 + ", VendorError: " + e.getErrorCode();
           throw new RepositoryException(err, e);
        }
     }
docs: {@inheritDoc}