code: public List<LdapEntity> getAllLdapEntities(String qualifiedType) {
          List<LdapEntity> entityTypes = new ArrayList<LdapEntity>();
  
          if (qualifiedType != null) {
              for (int i = 0; i < iLdapEntityTypeList.size(); i++) {
                  String entityType = iLdapEntityTypeList.get(i);
                  if (entityType != null && entityType.equals(qualifiedType)) {
                      entityTypes.add(iLdapEntities.get(i));
                  }
              }
              if (entityTypes.size() != 0) {
                  return entityTypes;
              } else {
                  for (int j = 0; j < iLdapEntityTypeList.size(); j++) {
                      String entityType = iLdapEntityTypeList.get(j);
                      // New:: Had to add this condition as "Entity.getSubEntityTypes(qualifiedType)" is returning null at runtime
                      if (qualifiedType.equalsIgnoreCase(entityType) ||
                          (Entity.getSubEntityTypes(qualifiedType) != null && Entity.getSubEntityTypes(qualifiedType).contains(entityType))) {
                          entityTypes.add(iLdapEntities.get(j));
                      }
                  }
                  if (entityTypes.size() != 0)
                      return entityTypes;
              }
          }
          return entityTypes;
      }
docs: The method returns the list of VMM entity types based on the qualifiedType read from the data graph.
  The qualifiedType is first compared with the defined VMM entity types. If a match is not found, it then
  determines if qualifiedType is a parent entity of defined entity types.
  
  @param qualifiedType
  @return a List of entity types