code: private boolean matchView(String actualView, String declaredView) {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(declaredView) || CmsStringUtil.isEmptyOrWhitespaceOnly(actualView)) {
              return true;
          }
          return CmsStringUtil.splitAsList(declaredView, "|").contains(actualView);
  
      }
docs: Checks if the actual view matches a view declaration.<p>
  
  @param actualView the actual view
  @param declaredView the declared view string
  
  @return true if the view matches