docs: public PortletDefinition getPortletDescriptor(PortletDefinitionForm form) {
          final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(form);
          if (portletDescriptorKeys == null) {
              return null;
          }
          final String portletAppId = portletDescriptorKeys.first;
          final String portletName = portletDescriptorKeys.second;
  
          final PortletRegistryService portletRegistryService =
                  portalDriverContainerServices.getPortletRegistryService();
          try {
              return portletRegistryService.getPortlet(portletAppId, portletName);
          } catch (PortletContainerException e) {
              e.printStackTrace();
              return null;
          }
      }