Add constant for "object" or extract getObject method