try {
Class<?> cls = ClassLoaderUtils
.loadClass("org.apache.cxf.transport.http.gzip.GZIPFeature",
this.getClass());
AbstractFeature feature = (AbstractFeature)cls.newInstance();
cls.getMethod("setThreshold", new Class[] {Integer.TYPE})
.invoke(feature, annotation.threshold());
feature.initialize(ep, bus);
} catch (Exception e) {
//ignore - just assume it's an unsupported/unknown annotation
}
}
}