jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/spi/metadata/ResourceBuilder.java
private static boolean isWeldProxy(Class<?> clazz) {
        for (Class<?> implementedInterface : clazz.getInterfaces()) {
            if (implementedInterface.getName().equals(WELD_PROXY_INTERFACE_NAME)) {
                return true;
            }
        }

        return false;
    }
private static boolean isWeldProxy(Class<?> clazz) {
        for (Class<?> implementedInterface : clazz.getInterfaces()) {
            if (implementedInterface.getName().equals(WELD_PROXY_INTERFACE_NAME)) {
                return true;
            }
        }

        return false;
    }
Whether the given class is a proxy created by Weld or not. This is the
case if the given class implements the interface
{@code org.jboss.weld.bean.proxy.ProxyObject}.

@param clazz
the class of interest
@return {@code true} if the given class is a Weld proxy, {@code false}
otherwise