code: @Override
      public Tuple<String, String> getPortletDescriptorKeys(IPortletDefinition portletDefinition) {
  
          final String portletApplicationId;
          if (portletDefinition.getPortletDescriptorKey().isFrameworkPortlet()) {
              portletApplicationId = this.servletContext.getContextPath();
          } else {
              portletApplicationId = portletDefinition.getPortletDescriptorKey().getWebAppName();
          }
  
          final String portletName = portletDefinition.getPortletDescriptorKey().getPortletName();
  
          return new Tuple<String, String>(portletApplicationId, portletName);
      }
docs: Get the portletApplicationId and portletName for the specified channel definition id. The
  portletApplicationId will be {@link Tuple#first} and the portletName will be {@link
  Tuple#second}