code: public EntityResult<SqlResultSetMapping<T>> getOrCreateEntityResult()
     {
        List<Node> nodeList = childNode.get("entity-result");
        if (nodeList != null &&  nodeList.size() > 0)
        {
           return new EntityResultImpl<SqlResultSetMapping<T>>(this, "entity-result", childNode, nodeList.get(0));
        }
        return createEntityResult();
     }
docs: If not already created, a new <code>entity-result</code> element will be created and returned.
  Otherwise, the first existing <code>entity-result</code> element will be returned.
  @return the instance defined for the element <code>entity-result</code>