final boolean isArray = returnType.isArray();
try {
if (isArray) {
final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
return arrayFromResultSet(resultSet, methodSQL.arrayMaxLength(), returnType, cal);
} else {
if (!resultSet.next()) {
return _tmf.fixNull(m.getReturnType());
}
return RowMapperFactory.getRowMapper(resultSet, returnType, cal).mapRowToReturnType();