code: public static boolean isWorkplaceLink(String link) {
  
          boolean result = false;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(link)) {
              result = link.startsWith(OpenCms.getSystemInfo().getWorkplaceContext());
              if (!result) {
                  try {
                      URI uri = new URI(link);
                      result = isWorkplaceUri(uri);
                  } catch (URISyntaxException e) {
                      LOG.debug(e.getLocalizedMessage(), e);
                  }
              }
          }
  
          return result;
      }
docs: Returns if the given link points to the OpenCms workplace UI.<p>
  
  @param link the link to test
  
  @return <code>true</code> in case the given URI points to the OpenCms workplace UI