*/
public static PropertyState readProperty(String name, MongoNodeStore store, JsopReader reader) {
if (reader.matches(JsopReader.NUMBER)) {
String number = reader.getToken();
try {
return new LongPropertyState(name, Long.parseLong(number));
} catch (NumberFormatException e) {
return new DoublePropertyState(name, Double.parseDouble(number));
}
} else if (reader.matches(JsopReader.TRUE)) {
return BooleanPropertyState.booleanProperty(name, true);