Object responses = method.invoke(addressing, new Object[]{});
java.lang.reflect.Constructor<?> constructor =
AddressingFeature.class.getConstructor(new Class[] {
boolean.class, boolean.class, responses.getClass()
});
Object obj = constructor.newInstance(addressing.enabled(), addressing.required(),
responses);
features.add((WebServiceFeature)obj);
} catch (Exception e) {
features.add(new AddressingFeature(addressing.enabled(), addressing.required()));
}