}
try {
// TODO: should we also pass interfaces to discover the right gbeans?
AbstractNameQuery containerId = getAdminObjectContainerId(name, j2eeType, gerResourceEnvRef);
ResourceReferenceFactory ref = buildManagedObjectReference(module, containerId, iface);
getJndiContextMap(componentContext).put(ENV + name, ref);
} catch (UnresolvedReferenceException e) {
throw new DeploymentException(
"Unable to resolve resource env reference '"
+ name