String child2BeanInterfaceName = Child2LocalBusiness.class.getName();
String child3BeanInterfaceName = Child3LocalBusiness.class.getName();
String nestedChildBeanInterfaceName = NestedChildLocalBusiness.class.getName();
// Create references
EjbReference parentReference = new EjbReference(null, parentBeanInterfaceName, null);
EjbReference child1LocalBusinessReference = new EjbReference(null, child1LocalBusinessBeanInterfaceName, null);
EjbReference child1RemoteBusinessReference = new EjbReference(null, child1RemoteBusinessBeanInterfaceName, null);
EjbReference child1LocalHomeReference = new EjbReference(null, child1LocalHomeBeanInterfaceName, null);
EjbReference child1RemoteHomeReference = new EjbReference(null, child1RemoteHomeBeanInterfaceName, null);
EjbReference child2Reference = new EjbReference(null, child2BeanInterfaceName, null);
EjbReference child3Reference = new EjbReference(null, child3BeanInterfaceName, null);
EjbReference nestedChildReference = new EjbReference(null, nestedChildBeanInterfaceName, null);
// Resolve
DeploymentUnit fromDu = parentDu;
String jndiNameParentLocalBusiness = resolver.resolveEjb(fromDu, parentReference);
String jndiNameChild1LocalBusiness = resolver.resolveEjb(fromDu, child1LocalBusinessReference);