code: protected void addScripts()
     {
        if (loadPlugins == null || loadPlugins.size() == 0)
        {
           return;
        }
        for (GroovyScript2RestLoaderPlugin loadPlugin : loadPlugins)
        {
           // If no one script configured then skip this item,
           // there is no reason to do anything.
           if (loadPlugin.getXMLConfigs().size() == 0)
           {
              continue;
           }
  
           Session session = null;
           try
           {
              ManageableRepository repository = repositoryService.getRepository(loadPlugin.getRepository());
              String workspace = loadPlugin.getWorkspace();
              session = repository.getSystemSession(workspace);
              String nodeName = loadPlugin.getNode();
              Node node = null;
              try
              {
                 node = (Node)session.getItem(nodeName);
              }
              catch (PathNotFoundException e)
              {
                 StringTokenizer tokens = new StringTokenizer(nodeName, "/");
                 node = session.getRootNode();
                 while (tokens.hasMoreTokens())
                 {
                    String t = tokens.nextToken();
                    if (node.hasNode(t))
                    {
                       node = node.getNode(t);
                    }
                    else
                    {
                       node = node.addNode(t, "nt:folder");
                    }
                 }
              }
  
              for (XMLGroovyScript2Rest xg : loadPlugin.getXMLConfigs())
              {
                 String scriptName = xg.getName();
                 if (node.hasNode(scriptName))
                 {
                    LOG.debug("Script {} already created", scriptName);
                    continue;
                 }
  
                 createScript(node, scriptName, xg.isAutoload(), configurationManager.getInputStream(xg.getPath()));
              }
              session.save();
           }
           catch (Exception e)
           {
              LOG.error("Failed add scripts. ", e);
           }
           finally
           {
              if (session != null)
              {
                 session.logout();
              }
           }
        }
     }
docs: Add scripts that specified in configuration.