protected void basePropertiesToJson(BaseResourceRepresentation representation, JSONObject json) {
super.basePropertiesToJson(representation, json);
AbstractExtensibleRepresentation r = (AbstractExtensibleRepresentation) representation;
Map attrs = r.getAttrs();
if (!attrs.isEmpty()) {
Iterator i = attrs.entrySet().iterator();
while (i.hasNext()) {
Entry entry = (Entry) i.next();
String propertyName = (String) entry.getKey();
Object propertyValue = entry.getValue();
putObject(json, propertyName, propertyValue);
}
}