Api2

This code only happens if the cast to an internal object fails.  There are places where we grab the name and json base from an external object (now perhaps _that_ is a bug, but they're in the code)