code: public static String getVaadinWorkplaceLink(CmsObject cms, CmsUUID structureId) {
  
          String resourceRootFolder = null;
  
          if (structureId != null) {
              try {
                  resourceRootFolder = CmsResource.getFolderPath(
                      cms.readResource(structureId, CmsResourceFilter.ONLY_VISIBLE_NO_DELETED).getRootPath());
              } catch (CmsException e) {
                  LOG.debug("Error reading resource for workplace link.", e);
              }
          }
          if (resourceRootFolder == null) {
              resourceRootFolder = cms.getRequestContext().getSiteRoot();
          }
          return getVaadinWorkplaceLink(cms, resourceRootFolder);
  
      }
docs: Returns the workplace link.<p>
  
  @param cms the cms context
  @param structureId the structure id of the current resource
  
  @return the workplace link