code: private Set<Classification> getClassification(final List<Long> _classIds)
          throws CacheReloadException
      {
          final Set<Classification> noadd = new HashSet<>();
          final Set<Classification> add = new HashSet<>();
          if (_classIds != null) {
              for (final Long id : _classIds) {
                  Classification clazz = (Classification) Type.get(id);
                  if (!noadd.contains(clazz)) {
                      add.add(clazz);
                      while (clazz.getParentClassification() != null) {
                          clazz = clazz.getParentClassification();
                          if (add.contains(clazz)) {
                              add.remove(clazz);
                          }
                          noadd.add(clazz);
                      }
                  }
              }
          }
          return add;
      }
docs: Method to get only the leaf of the classification tree.
  
  @param _classIds List of classids
  @return set
  @throws CacheReloadException on error