String jndiName;// get and verify deploymentId
String deploymentId = getProperty(reference, DEPLOYMENT_ID);
if (deploymentId == null) throw new NamingException("ejb-ref deploymentId is null");
// get and verify interface type
InterfaceType type = InterfaceType.BUSINESS_REMOTE;
String interfaceType = getProperty(reference, REMOTE);
if (interfaceType == null) {
type = InterfaceType.LOCALBEAN;
interfaceType = getProperty(reference, LOCALBEAN);