}
ReflectionUtils.doWithFields(getPojo().getClass(), new FieldCallback() {
public void doWith(Field field) throws IllegalArgumentException,
IllegalAccessException {
if (field.getAnnotation(WebServiceRef.class) != null) {
ServiceImpl s = new ServiceImpl(getBus(), null, null, field
.getType());
s.addPort(new QName("port"),
JBITransportFactory.TRANSPORT_ID, "jbi://"
+ ID_GENERATOR.generateSanitizedId());
Object o = s.getPort(new QName("port"), field.getType());
field.setAccessible(true);
field.set(getPojo(), o);
}
}
});