@SuppressWarnings("rawtypes")
	private void configRowMapper(Method method) {
		MapperBy mapperBy = method.getAnnotation(MapperBy.class);
		Class<? extends RowMapper> mapperType = AutoDetectRowMapper.class;
		if (mapperBy != null) {
			mapperType = mapperBy.value();
		}

		if (AutoDetectRowMapper.class.equals(mapperType)) {
			Class<?> type = method.getReturnType();
			if (ClassHelper.isTypeList(type)) {
				type = ClassHelper.getReturnGenericType(method);
			}

			rowMapper = (RowMapper<?>) ReflectUtils.newInstance(mapperType, new Class[] { Class.class },
					new Object[] { type });
		} else {

			rowMapper = (RowMapper<?>) ReflectUtils.newInstance(mapperType);
		}
	}