code: public void addPlugin(ComponentPlugin plugin)
     {
        if(plugin instanceof UserAddPathPlugin) {
          UserAddPathPlugin app = (UserAddPathPlugin)plugin;
          userPathPlugins_.add(app);
          if (app.getPaths() != null && app.getPaths().getJcrPaths() != null)
          {
             for (JcrPath jcrPath : app.getPaths().getJcrPaths())
             {
                if (jcrPath.getAlias() != null && jcrPath.getPath() != null)
                {
                   paths_.put(jcrPath.getAlias(), jcrPath.getPath());
                }
             }
          }
        } else if (plugin instanceof AddPathPlugin) {
           AddPathPlugin app = (AddPathPlugin)plugin;
           pathPlugins_.add(app);
           if (app.getPaths() != null && app.getPaths().getJcrPaths() != null)
           {
              for (JcrPath jcrPath : app.getPaths().getJcrPaths())
              {
                 if (jcrPath.getAlias() != null && jcrPath.getPath() != null)
                 {
                    paths_.put(jcrPath.getAlias(), jcrPath.getPath());
                 }
              }
           }
        }
     }
docs: {@inheritDoc}