code: @Override
    public <T> T retrieveBean(String name, T bean, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeExpressions) throws CpoException {
      return getCurrentResource().retrieveBean(name, bean, wheres, orderBy, nativeExpressions);
    }
docs: Retrieves the bean from the datasource. The assumption is that the bean exists in the datasource. If the retrieve
  function defined for this beans returns more than one row, an exception will be thrown.
  
  @param name              DOCUMENT ME!
  @param bean              This is an bean that has been defined within the metadata of the datasource. If the class is not
  defined an exception will be thrown. If the bean does not exist in the datasource, an exception will be thrown. The
  input bean is used to specify the search criteria, the output bean is populated with the results of the function.
  @param wheres            A collection of CpoWhere beans that define the constraints that should be used when retrieving beans
  @param orderBy           The CpoOrderBy bean that defines the order in which beans should be returned
  @param nativeExpressions Native expression that will be used to augment the expression stored in the meta data. This
  text will be embedded at run-time
  @return An bean of the same type as the result parameter that is filled in as specified the metadata for the
  retireve.
  @throws CpoException Thrown if there are errors accessing the datasource