The function mentioned below returns only ManagedEntity though it retrieves the properties of the ManagedEntity.
public ManagedEntity[] searchManagedEntities(String[][] typeinfo, boolean recurse ) throws InvalidProperty, RuntimeFault, RemoteException
We can return it as a Map containing ManagedEntity and HashTable( ObjectContents for the properties ) for each entry.So the user need not call again the retrieveproperties function in propertycollectorutil to get the properties of the managed Entity