# doGetObject method

1. @override

Future<Object> doGetObject(

1. Object instance,
2. Class? type,
3. String name,
4. String transformed,
5. PodDefinition? definition,

)
override

Internal method to handle PodProvider unwrapping and instance retrieval.

This method processes the retrieved pod instance, handling PodProvider unwrapping and ensuring the correct instance is returned based on the request type (provider pod vs produced pod).

`instance` the pod instance retrieved from cache or creation `type` the expected type of the pod `name` the original pod name `transformed` the transformed pod name `definition` the pod definition (optional) Returns the final pod instance to return

Throws PodIsNotAProviderException if a provider pod is expected but not found

## Implementation

    @override
    Future<Object> doGetObject(Object instance, Class? type, String name, String transformed, PodDefinition? definition) {
      final currently = _currentlyCreatedPod.get();
      if (currently != null) {
        registerDependentPod(name, currently);
      }

      return super.doGetObject(instance, type, name, transformed, definition);
    }