Added support for injecting an instance of an object that has been created externally.