![image](https://user-images.githubusercontent.com/18097545/78014651-d54cb580-737a-11ea-809c-fe5dc884ec55.png)

dubbo 2.7.3， 同时暴露rest和dubbo，com.alibaba.dubbo.samples.echo.api.EchoService这个接口是dubbo协议的，还是当做rest来暴露？

public static Set<ParameterizedType> findParameterizedTypes(Class<?> sourceClass) {
        
        List<Type> genericTypes = new LinkedList<>(asList(sourceClass.getGenericInterfaces()));
        
        genericTypes.add(sourceClass.getGenericSuperclass());
        Set<ParameterizedType> parameterizedTypes = genericTypes.stream()
                .filter(type -> type instanceof ParameterizedType)
                .map(type -> ParameterizedType.class.cast(type))  
                .collect(Collectors.toSet());
        if (parameterizedTypes.isEmpty()) { 
            genericTypes.stream()
                    .filter(type -> type instanceof Class)
                    .map(type -> Class.class.cast(type))
                    .forEach(superClass -> {
                        parameterizedTypes.addAll(findParameterizedTypes(superClass));
                    });
        }
        return unmodifiableSet(parameterizedTypes);                     
    }
    /**
     * Find the hierarchical types from the source {@link Class class} by specified {@link Class type}.
     *
     * @param sourceClass the source {@link Class class}
     * @param matchType   the type to match
     * @param <T>         the type to match
     * @return non-null read-only {@link Set}
     * @since 2.7.5
     */
    public static <T> Set<Class<T>> findHierarchicalTypes(Class<?> sourceClass, Class<T> matchType) {
        if (sourceClass == null) {