List<PropertyRecord> records = new ArrayList<PropertyRecord>(properties.size());
for(Property prop : properties)
{
String name = prop.getName();
String value = prop.getValue().asObject().get("value").asString();
PropertyRecord propertyRecord = factory.property().as();
propertyRecord.setKey(name);
propertyRecord.setValue(value);
records.add(propertyRecord);
}
callback.onSuccess(records);
}