code: private void parseResources(Element element, BeanDefinitionBuilder builder,
                                  ManagedList<AbstractBeanDefinition> resourceList) {
          NodeList resources = element.getChildNodes();
  
          for (int i = 0; i < resources.getLength(); i++) {
              Node node = resources.item(i);
  
              if (!(node instanceof Element)) {
                  continue;
              }
  
              Element resource = (Element) resources.item(i);
              Class<? extends IPluginResource> resourceClass = null;
  
              switch (getResourceType(getNodeName(resource))) {
                  case button:
                      resourceClass = PluginResourceButton.class;
                      break;
                  
                  case help:
                      resourceClass = PluginResourceHelp.class;
                      break;
                  
                  case menu:
                      resourceClass = PluginResourceMenu.class;
                      break;
                  
                  case property:
                      resourceClass = PluginResourcePropertyGroup.class;
                      break;
                  
                  case css:
                      resourceClass = PluginResourceCSS.class;
                      break;
                  
                  case bean:
                      resourceClass = PluginResourceBean.class;
                      break;
                  
                  case command:
                      resourceClass = PluginResourceCommand.class;
                      break;
                  
                  case action:
                      resourceClass = PluginResourceAction.class;
                      break;
              }
  
              if (resourceClass != null) {
                  BeanDefinitionBuilder resourceBuilder = BeanDefinitionBuilder.genericBeanDefinition(resourceClass);
                  addProperties(resource, resourceBuilder);
                  resourceList.add(resourceBuilder.getBeanDefinition());
              }
          }
      }
docs: Parse the resource list.
  
  @param element Root resource tag.
  @param builder Bean definition builder.
  @param resourceList List of resources to build.