return result;
}
private static Object parseScalarValue(String value, String typeStr) throws IllegalArgumentException {
ScalarType type = Enum.valueOf(ScalarType.class, typeStr);
switch (type) {
case String:
return value;
case Long:
return Long.valueOf(value);