code: public void addNamespace(String prefix, String uri) throws RepositoryException
     {
        if (!started)
        {
           if (log.isDebugEnabled())
              log.debug("Unable save namespace " + uri + "=" + prefix + " in to the storage. Storage not initialized");
           return;
        }
        PlainChangesLog changesLog = new PlainChangesLogImpl();
        internallAdd(changesLog, prefix, uri);
  
        dataManager.save(new TransactionChangesLog(changesLog));
  
     }
docs: Add new namespace.
  
  @param prefix
  NS prefix
  @param uri
  NS URI
  @throws RepositoryException
  Repository error