type = new BeanWrapperImpl(type.newInstance()).getPropertyType(parts[index]);
Field field = getField(type, parts[parts.length - 1]);
Class<?> enumType = field.getType();
return enumType.isEnum() && (position < enumType.getEnumConstants().length) ? enumType.getEnumConstants()[position] : null;
} catch (Exception ex) {
throw new IWebMvcException("Could not get enum value from [" + clazz.getName() + "] with position [" + position + "]", ex);
}
}