code: public void addNamespaces(Map<String, String> namespaceMap) throws RepositoryException
     {
        if (!started)
        {
           log.warn("Unable save namespaces in to the storage. Storage not initialized");
           return;
        }
  
        PlainChangesLog changesLog = new PlainChangesLogImpl();
        for (Map.Entry<String, String> entry : namespaceMap.entrySet())
        {
           String prefix = entry.getKey();
           String uri = entry.getValue();
  
           if (prefix != null)
           {
              if (log.isDebugEnabled())
                 log.debug("Namespace " + uri + ":" + prefix);
              internallAdd(changesLog, prefix, uri);
           }
        }
        dataManager.save(new TransactionChangesLog(changesLog));
  
     }
docs: Add new namespace.
  
  @param namespaceMap
  @throws RepositoryException Repository error