Performs an attempt to compose an entity using the specified resolver object.
A smart pointer to the entity with the attached compound object.