Log.info("Bound resource-env-ref java:comp/env/"+name);
Log.debug("Bound resource-env-ref java:comp/env/"+name);
    public void bindResourceEnvRef(String name) throws Exception    {                Resource resource = Resource.getResource(NamingEntry.SCOPE_LOCAL, name);        if (resource != null)            return; //already bound        resource = Resource.getResource(NamingEntry.SCOPE_GLOBAL, name);        if (resource != null)        {            resource.bindToEnv();            Log.info("Bound resource-env-ref java:comp/env/"+name);        }        else            Log.warn("No resource to bind matching name="+name);    }