if (classDescription instanceof EOEntityClassDescription) {
// EOEntityClassDescription.classDescriptionForEntityName(obj.getClass().getName());
EOClassDescription nonModelClassDescription = ERXRestClassDescriptionFactory.classDescriptionForObject(obj, true);
for (ERXKey<?> remainingKey : remainingKeys) {
String keyName = remainingKey.key();
if (nonModelClassDescription.attributeKeys().containsObject(keyName)) {
_addAttributeNodeForKeyInObject(remainingKey, obj, keyFilter);
}
else if (nonModelClassDescription.toManyRelationshipKeys().containsObject(keyName)) {
_addToManyRelationshipNodeForKeyOfEntityInObject(remainingKey, nonModelClassDescription.classDescriptionForDestinationKey(keyName), obj, keyFilter, context, visitedObjects);
}