Log.info("Bound resourceref java:comp/env/"+name);
Log.debug("Bound resourceref java:comp/env/"+name);
    public void bindResourceRef(String name) throws Exception    {                Resource resource = Resource.getResource(NamingEntry.SCOPE_LOCAL, name);        if (resource != null)            return; //already bound the locally scoped resource of that name                resource = Resource.getResource(NamingEntry.SCOPE_GLOBAL, name);        if (resource != null)        {            //no locally scoped overrides, so bind the global one            resource.bindToEnv();            Log.info("Bound resourceref java:comp/env/"+name);        }        else        {            Log.warn("No resource to bind matching name="+name);        }    }