public static Class<?> updateParamClassToTypeIfNeeded(Class<?> paramCls, Type type) {
        if (paramCls != type && type instanceof Class) {
            Class<?> clsType = (Class<?>) type;
            if (paramCls.isAssignableFrom(clsType)
                || clsType != Object.class && !clsType.isInterface() && clsType.isAssignableFrom(paramCls)) {
                paramCls = clsType;
            }
        }
        return paramCls;
    }
public static Class < ? > updateParamClassToTypeIfNeeded ( Class < ? > paramCls , Type type ) { if ( paramCls != type && type instanceof Class ) { Class < ? > clsType = ( Class < ? > ) type ; if ( paramCls . isAssignableFrom ( clsType ) || clsType != Object . class && ! clsType . isInterface ( ) && clsType . isAssignableFrom ( paramCls ) ) { paramCls = clsType ; } } return paramCls ; }
Liberty Change for CXF End