code: public void start()
     {
        if (!started)
           try
           {
              for (RepositoryEntry repConfiguration : repConfigurations())
              {
                 String repName = repConfiguration.getName();
                 String wsName = null;
                 if (props != null)
                 {
                    wsName = props.getProperty(repName);
                    if (wsName == null)
                       wsName = repConfiguration.getDefaultWorkspaceName();
                 }
                 else
                 {
                    wsName = repConfiguration.getDefaultWorkspaceName();
                 }
                 addRegistryLocation(repName, wsName);
                 InputStream xml = SecurityHelper.doPrivilegedAction(new PrivilegedAction<InputStream>()
                 {
                    public InputStream run()
                    {
                       return getClass().getResourceAsStream(NT_FILE);
                    }
                 });
  
                 try
                 {
                    repositoryService.getRepository(repName).getNodeTypeManager()
                       .registerNodeTypes(xml, ExtendedNodeTypeManager.IGNORE_IF_EXISTS, NodeTypeDataManager.TEXT_XML);
                 }
                 finally
                 {
                    try
                    {
                       xml.close();
                    }
                    catch (Exception e)
                    {
                       if (LOG.isTraceEnabled())
                       {
                          LOG.trace("An exception occurred: " + e.getMessage());
                       }
                    }                  
                 }
              }
              initStorage(false);
  
              started = true;
           }
           catch (RepositoryConfigurationException e)
           {
              LOG.error(e.getLocalizedMessage(), e);
           }
           catch (RepositoryException e)
           {
              LOG.error(e.getLocalizedMessage(), e);
           }
        else if (LOG.isDebugEnabled())
           LOG.warn("Registry service already started");
     }
docs: {@inheritDoc}