* @param resultSet Result set to map.
* @param cal A Calendar instance for resolving date/time values.
* @return A RowSet object.
*/
public RowSet mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) {
final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
final int maxrows = methodSQL.maxRows();
try {
CachedRowSetImpl rows = new CachedRowSetImpl();
if (maxrows > 0) {