code: private E setRelationEntities(Object enhanceEntity, Client client, EntityMetadata m)
      {
          E result = null;
          if (enhanceEntity != null)
          {
              if (!(enhanceEntity instanceof EnhanceEntity))
              {
                  enhanceEntity = new EnhanceEntity(enhanceEntity, PropertyAccessorHelper.getId(enhanceEntity, m), null);
              }
  
              EnhanceEntity ee = (EnhanceEntity) enhanceEntity;
  
              result = (E) client.getReader().recursivelyFindEntities(ee.getEntity(), ee.getRelations(), m,
                      persistenceDelegator, false, new HashMap<Object, Object>());
          }
          return result;
      }
docs: Sets the relation entities.
  
  @param enhanceEntity
  the enhance entity
  @param client
  the client
  @param m
  the m
  @return the e