throws Exception
{
ClassLoader loader = unit.getClassLoader();
Class<?> ifaceClass = loader.loadClass(iface);
String vfsContext = unit.getRelativePath();
EndpointInfo info = resolver.getEndpointInfo(ifaceClass, EndpointType.EJB, vfsContext);
if(info == null)
throw new IllegalStateException("Failed to find ContainerDependencyMetaData for interface: "+ iface);
ContainerDependencyMetaData cdmd = endpointMap.get(info.getComponentKey());
return cdmd;
}