docs: public boolean isPasswordRequested(PortletRequest request, PortletWindow plutoPortletWindow)
              throws PortletContainerException {
  
          // get the list of requested user attributes
          final HttpServletRequest httpServletRequest =
                  this.portalRequestUtils.getPortletHttpRequest(request);
          final IPortletWindow portletWindow =
                  this.portletWindowRegistry.convertPortletWindow(
                          httpServletRequest, plutoPortletWindow);
          final IPortletEntity portletEntity = portletWindow.getPortletEntity();
          final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
          final PortletApplicationDefinition portletApplicationDescriptor =
                  this.portletDefinitionRegistry.getParentPortletApplicationDescriptor(
                          portletDefinition.getPortletDefinitionId());
  
          // check to see if the password key is one of the requested user attributes
          List<? extends UserAttribute> requestedUserAttributes =
                  portletApplicationDescriptor.getUserAttributes();
          for (final UserAttribute userAttributeDD : requestedUserAttributes) {
              final String attributeName = userAttributeDD.getName();
              if (attributeName.equals(this.passwordKey)) return true;
          }
  
          // if the password key wasn't found in the list of requested attributes
          return false;
      }