rest-assured/src/main/java/io/restassured/internal/MultiValueEntity.java
public List<T> getList(String entityName) {
        notNull(entityName, "Entity name");
        final List<T> entityList = new ArrayList<T>();
        for (T entity : entities) {
            if(entity.getName().equalsIgnoreCase(entityName)) {
                entityList.add(entity);
            }
        }
        return Collections.unmodifiableList(entityList);
    }
public List<T> getList(String entityName) {
        notNull(entityName, "Entity name");
        final List<T> entityList = new ArrayList<T>();
        for (T entity : entities) {
            if(entity.getName().equalsIgnoreCase(entityName)) {
                entityList.add(entity);
            }
        }
        return Collections.unmodifiableList(entityList);
    }
Get all entities with the supplied name. If there's only one entity matching the <code>entityName</code> then
a list with only that entity is returned.

@param entityName The name of the entity to find
@return The found entities or empty list if no entity was found.