if (obj instanceof Proxy) {
obj = convertEJBToCORBAObject((Proxy) obj);
}
if (obj instanceof StandardServant) {
StandardServant servant = (StandardServant) obj;
InterfaceType servantType = servant.getInterfaceType();
String deploymentId = servant.getEjbDeployment().getDeploymentId();
try {
RefGenerator refGenerator = AdapterWrapper.getRefGenerator(deploymentId);
if (refGenerator == null) {
throw new MARSHAL("Could not find RefGenerator for deployment id: " + deploymentId);