code: protected void validatePluginDescriptor(PluginDescriptor descriptor) throws PluginException {
          if (StringUtils.isNullOrEmpty(descriptor.getPluginId())) {
              throw new PluginException("Field 'id' cannot be empty");
          }
  
          if (descriptor.getVersion() == null) {
              throw new PluginException("Field 'version' cannot be empty");
          }
      }
docs: Override this to change the validation criteria.
  
  @param descriptor the plugin descriptor to validate
  @throws PluginException if validation fails