// add LoggingFilter to any pipeline that is created
Builder.Registry builder = (Builder.Registry) config.getBuilder();
builder.alter(ManagementClient.class, Client.class, new Builder.Alteration<Client>() {
@Override
public Client alter(String profile, Client client, Builder builder, Map<String, Object> properties) {
client.addFilter(new LoggingFilter());
return client;
}
});
managementClient = ManagementService.create(config);