/*
 * Copyright (C) 2013 StarTIC
 */
package com.bq.oss.lib.ws.cli;

import com.bq.oss.lib.ws.api.ArtifactIdVersionResource;
import io.dropwizard.setup.Environment;
import org.springframework.context.ApplicationContext;

/**
 * @author Alexander De Leon
 * 
 */
public abstract class ServiceRunnerWithVersionResource<T> extends ServiceRunner<T> {

	@Override
	protected final String getName() {
		return getArtifactId();
	}

	/**
	 * Subclasses have to call super.configureService(...) to register version resource
	 */
	@Override
	protected void configureService(Environment environment, ApplicationContext context) {
		environment.jersey().register(new ArtifactIdVersionResource(getArtifactId()));
	}

	protected abstract String getArtifactId();

}

@@ -158,16 +158,69 @@
 onment;%0A
+import org.glassfish.jersey.server.ServerProperties;%0A
 import o
@@ -665,18 +665,123 @@
 text) %7B%0A
-%09%09
+        environment.jersey().property(ServerProperties.PROCESSING_RESPONSE_ERRORS_ENABLED, false);%0A        
 environm

change jersey config: dont process response errors