naming/src/main/java/org/jboss/as/naming/context/ModularReference.java
public static ModularReference create(final Class<?> type, final Class<?> factoryClass) {
        return create(type.getName(), factoryClass);
    }
public static ModularReference create(final Class<?> type, final Class<?> factoryClass) {
        return create(type.getName(), factoryClass);
    }
Create a ModuleReference from a target type and factory class.

@param type The class type for the reference
@param factoryClass The factory class
@return A ModularReference