XmlObject[] resourceEnvRefsUntyped = convert(specDD.selectChildren(adminOjbectRefQNameSet), J2EE_CONVERTER, ResourceEnvRefType.type);
ClassLoader cl = module.getEarContext().getClassLoader();
XmlObject[] gerResourceEnvRefsUntyped = plan == null? NO_REFS: plan.selectChildren(GER_ADMIN_OBJECT_REF_QNAME_SET);
Map refMap = mapResourceEnvRefs(gerResourceEnvRefsUntyped);
for (int i = 0; i < resourceEnvRefsUntyped.length; i++) {
ResourceEnvRefType resourceEnvRef = (ResourceEnvRefType) resourceEnvRefsUntyped[i];
String name = resourceEnvRef.getResourceEnvRefName().getStringValue().trim();
String type = resourceEnvRef.getResourceEnvRefType().getStringValue().trim();
Class iface;
try {
iface = cl.loadClass(type);
} catch (ClassNotFoundException e) {
throw new DeploymentException("could not load class " + type, e);