if (! resource.type().equals(Object.class)
&& ! resource.type().equals(void.class)) {
bindType = resource.type();
}
ValueGenerator gen = null;
if (lookupName != null && ! "".equals(lookupName))
gen = new JndiValueGenerator(loc, bindType, lookupName);
else
gen = lookupJndi(loc, bindType, name);