protected static ManagementClient managementClient;
protected static String smLocation = null;
protected static void createService() throws Exception {
// reinitialize configuration from known state
Configuration config = createConfiguration();
config.setProperty(ApacheConfigurationProperties.PROPERTY_RETRY_HANDLER, new DefaultHttpRequestRetryHandler());
// add LoggingFilter to any pipeline that is created
Registry builder = (Registry) config.getBuilder();
builder.alter(ManagementClient.class, Client.class, new Alteration<Client>() {
@Override
public Client alter(String profile, Client client, Builder builder, Map<String, Object> properties) {
client.addFilter(new LoggingFilter());
return client;