code: private Optional<LocalComponent> getLocalComponentForElement(Element element) {
      String componentName = element.getAttributes().getValue("is");
      if (componentName == null) {
        componentName = element.getStartTag().getName();
      }
  
      return context.getLocalComponent(componentName);
    }
docs: Return the {@link LocalComponent} definition for a given DOM {@link Element}
  
  @param element Current element being processed
  @return An Optional {@link LocalComponent}