code: private void checkAccess()
          throws EFapsException
      {
          // check the access for the given instances
          final Map<Instance, Boolean> accessmap = new HashMap<Instance, Boolean>();
          for (final Entry<Type, List<Instance>> entry : this.typeMapping.entrySet()) {
              accessmap.putAll(entry.getKey().checkAccess(entry.getValue(), AccessTypeEnums.SHOW.getAccessType()));
          }
          this.elements.entrySet().removeIf(entry -> accessmap.size() > 0 && (!accessmap.containsKey(entry.getKey())
                          || !accessmap.get(entry.getKey())));
      }
docs: Check access.
  
  @throws EFapsException on error