} else {
type = member.getType().getName();
}
if (knownResourceEnvTypes.contains(type)) {
ResourceEnvRef resourceEnvRef = consumer.getResourceEnvRefMap().get(refName);
if (resourceEnvRef == null) {
resourceEnvRef = new ResourceEnvRef();
resourceEnvRef.setName(refName);
consumer.getResourceEnvRef().add(resourceEnvRef);
}
if (resourceEnvRef.getResourceEnvRefType() == null || ("").equals(resourceEnvRef.getResourceEnvRefType())) {
if (resource.type() != java.lang.Object.class) {
resourceEnvRef.setResourceEnvRefType(resource.type().getName());
} else {
resourceEnvRef.setResourceEnvRefType(member.getType().getName());
}
}
reference = resourceEnvRef;
} else if (!knownEnvironmentEntries.contains(type)) {
ResourceRef resourceRef = consumer.getResourceRefMap().get(refName);