package com.zyeeda.framework.cxf;

import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.annotate.JsonSerialize;

public class JacksonJsonProvider extends JacksonJaxbJsonProvider {

	public JacksonJsonProvider() {
		ObjectMapper m = this._mapperConfig.getConfiguredMapper();
		if (m == null) {
			m = this._mapperConfig.getDefaultMapper();
		}
		m.getSerializationConfig().setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL);
	}
	
}

@@ -193,16 +193,78 @@
 ialize;%0D
+%0Aimport org.codehaus.jackson.map.SerializationConfig.Feature;%0D
 %0A%0D%0Apubli
@@ -586,16 +586,68 @@
 NULL);%0D%0A
+%09%09m.configure(Feature.FAIL_ON_EMPTY_BEANS, false);%0D%0A
 %09%7D%0D%0A%09%0D%0A%7D

Update JacksonJsonProvider's config to avoid serializing proxy beans.