* @param beanName The name for the manage bean
* @return A reference instance
*/
public static ModularReference createReference(final Class<?> managedBeanClass, final String beanName) {
final RefAddr refAddr = new ManagedBeanObjectFactory.ServiceNameRefAdr(beanName);
return new ModularReference(managedBeanClass.getName(), refAddr, ManagedBeanObjectFactory.class.getName(), Module.forClass(ManagedBeanObjectFactory.class).getIdentifier());
}