Add license
Add a getResolvedObjectClass() and use it.