code: protected EnhanceEntity findById(Object primaryKey, EntityMetadata m, Client client)
      {
          try
          {
              Object o = client.find(m.getEntityClazz(), primaryKey);
  
              if (o == null)
              {
                  // No entity found
                  return null;
              }
              else
              {
                  return o instanceof EnhanceEntity ? (EnhanceEntity) o : new EnhanceEntity(o, getId(o, m), null);
              }
          }
          catch (Exception e)
          {
              throw new EntityReaderException(e);
          }
      }
docs: Retrieves an entity from ID
  
  @param primaryKey
  @param m
  @param client
  @return