protected <T extends ManagedEntity>List<T> searchManagedEntities(ManagedEntity parent,Class<T> type,boolean recurse) throws VMWareException {
  String typeName=type.getSimpleName();
  List<T> results=Lists.newArrayList();
  for (  ManagedEntity entity : searchManagedEntities(parent,typeName,recurse)) {
    results.add((T)entity);
  }
  return results;
}

protected < T extends ManagedEntity > List < T > searchManagedEntities ( ManagedEntity parent , Class < T > type , boolean recurse ) throws VMWareException { String typeName = type . getSimpleName ( ) ; List < T > results = Lists . newArrayList ( ) ; for ( ManagedEntity entity : searchManagedEntities ( parent , typeName , recurse ) ) { results . add ( ( T ) entity ) ; } return results ; }
searches from the given parent for managed entities of the given type .
