code: public Map<CmsUUID, CmsElementView> getElementViews(CmsObject cms) {
  
          CmsConfigurationCache cache = getCache(isOnline(cms));
          List<CmsElementView> viewList = Lists.newArrayList();
          viewList.addAll(cache.getState().getElementViews().values());
          viewList.addAll(OpenCms.getWorkplaceManager().getExplorerTypeViews().values());
          Collections.sort(viewList, new ElementViewComparator());
          Map<CmsUUID, CmsElementView> result = Maps.newLinkedHashMap();
          for (CmsElementView viewValue : viewList) {
              result.put(viewValue.getId(), viewValue);
          }
          return result;
      }
docs: Returns the available element views.<p>
  
  @param cms the cms context
  
  @return the element views