code: public void setDescriptor(DescriptorRepository repository, boolean global)
      {
          if (global)
          {
              if (log.isDebugEnabled()) log.debug("Set new global repository: " + repository);
              globalRepository = repository;
          }
          else
          {
              if (log.isDebugEnabled()) log.debug("Set new threaded repository: " + repository);
              threadedRepository.set(repository);
          }
      }
docs: Set the {@link org.apache.ojb.broker.metadata.DescriptorRepository} - if <i>global</i> was true, the
  given descriptor aquire global availability (<i>use with care!</i>),
  else the given descriptor was associated with the calling thread.
  
  @see #isEnablePerThreadChanges
  @see #setEnablePerThreadChanges