docs: protected IPortletEntity wrapEntity(IPortletEntity portletEntity) {
          if (portletEntity == null) {
              return null;
          }
  
          final String persistentLayoutNodeId = portletEntity.getLayoutNodeId();
          if (persistentLayoutNodeId.startsWith(TransientUserLayoutManagerWrapper.SUBSCRIBE_PREFIX)) {
              final IUserLayoutManager userLayoutManager = this.getUserLayoutManager();
              if (userLayoutManager == null) {
                  this.logger.warn(
                          "Could not find IUserLayoutManager when trying to wrap transient portlet entity: "
                                  + portletEntity);
                  return portletEntity;
              }
  
              final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
              final String fname = portletDefinition.getFName();
              final String layoutNodeId = userLayoutManager.getSubscribeId(fname);
              return new TransientPortletEntity(portletEntity, layoutNodeId);
          }
  
          return portletEntity;
      }