protected static <E extends IEntity> List<SearchResult> transformEntityList(final List<E> entityList,
final Collection<String> inclusionProperties) {
final List<SearchResult> slist = new ArrayList<SearchResult>(entityList.size());
for(final E e : entityList) {
if(inclusionProperties != null) {
slist.add(new SearchResult(scalarize(e, inclusionProperties)));
}
else {
slist.add(new SearchResult(e));
}
}
return slist;
}