Hq1125 injected object registry

Can we make this more generic and have just an add and remove method?

Im thinking something like

add(servicename, resourcename, Object)

then they can be obtained something like:

registry.get("ExecutorService").get("ScheduledExecutor")

and added in Wildfly something like:

registry.get("ExecutorService", "Scheduledexecutor", ScheduledExecutorService)