}
@SuppressWarnings("unchecked")
protected void initBusProperty() {
if (endpointAddresses != null && serverAddress != null && getBus() != null) {
Bus bus = getBus();
synchronized (bus) {
Map<String, String> addresses =
(Map<String, String>)bus.getProperty("org.apache.cxf.extensions.logging.atom.pull");
if (addresses == null) {
addresses = new HashMap<String, String>();
}
for (String address : endpointAddresses) {
addresses.put(address, serverAddress + "/logs");
}
bus.setProperty("org.apache.cxf.extensions.logging.atom.pull", addresses);
}
}
}