code: public static RowMapper getRowMapper(ResultSet rs, Class returnTypeClass, Calendar cal) {
  
          Class<? extends RowMapper> rm = _rowMappings.get(returnTypeClass);
          if (rm != null) {
              return getMapper(rm, rs, returnTypeClass, cal);
          }
  
          //
          // if we made it to here, check if the default XMLObject Mapper can be used,
          // otherwise use the default object mapper
          //
          if (XMLOBJ_CLASS != null && XMLOBJ_CLASS.isAssignableFrom(returnTypeClass)) {
              return getMapper(DEFAULT_XMLOBJ_ROWMAPPING, rs, returnTypeClass, cal);
          } else {
              return getMapper(DEFAULT_OBJ_ROWMAPPING, rs, returnTypeClass, cal);
          }
      }
docs: Get a RowMapper instance which knows how to map a ResultSet row to the given return type.
  
  @param rs              The ResultSet to map.
  @param returnTypeClass The class to map a ResultSet row to.
  @param cal             Calendar instance for mapping date/time values.
  @return A RowMapper instance.