ResultMap resultMap;
if (mapping.getResultMapName() == null) {
resultMap = request.getResultMap();
handleOutputParameterResults(request, resultMap, rs, callback);
} else {
ExtendedSqlMapClient client = (ExtendedSqlMapClient) request.getSession().getSqlMapClient();
resultMap = client.getDelegate().getResultMap(mapping.getResultMapName());
DefaultRowHandler rowHandler = new DefaultRowHandler();
RowHandlerCallback handlerCallback = new RowHandlerCallback(resultMap, null, rowHandler);
handleOutputParameterResults(request, resultMap, rs, handlerCallback);
parameters[i] = rowHandler.getList();
}