### Is your feature request related to a problem? Please describe. When using declarative config, `getResource()` (it's protected) [returns an empty instance](https://github.com/open-telemetry/opentelemetry-java/blob/78a917da2e8f4bc3645f4fb10361e3e844aab9fb/sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/IncubatingUtil.java#L60). In the agent, [we access this instance](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/94bad9cbd6d400d4213f5f5bf525cab2efd7960f/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentInstaller.java#L175). ### Describe the solution you'd like Possible solutions - populate the resource in the SDK - extract the resource from the tracer provider using reflection - use some plugin from the SDK (not sure which) ### Describe alternatives you've considered _No response_ ### Additional context _No response_