List getAssociatedEntitiesFromIndex(Class owningClazz, Object entityId, Class<?> childClass, Client childClient)
{
List associatedEntities;
IndexManager indexManager = childClient.getIndexManager();
Map<String, Object> results = indexManager != null ? indexManager.search(owningClazz, childClass, entityId)
: new HashMap<String, Object>();
Set rsSet = results != null ? new HashSet(results.values()) : new HashSet();
if (childClass.equals(owningClazz))
{