throw new IllegalValueTypeException();
}
//
Class<?> effectiveType;
ValueType valueType;
if (declaredType == String.class) {
effectiveType = String.class;
valueType = ValueType.STRING;
} else if (declaredType == Integer.class || declaredType == int.class) {
effectiveType = Integer.class;