code: public static ObjectMapper setupDefaultMapper(JsonFactory factory) {
  		final ObjectMapper mapper = new ObjectMapper(factory);
  		// same as emf
  		final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH);
  		dateFormat.setTimeZone(TimeZone.getDefault());
  
  		mapper.configure(SerializationFeature.INDENT_OUTPUT, true);
  		mapper.setDateFormat(dateFormat);
  		mapper.setTimeZone(TimeZone.getDefault());
  		mapper.registerModule(new EMFModule());
  
  		return mapper;
  	}
docs: Returns a pre configured mapper using the EMF module and the specified jackson factory.
  This method can be used to work with formats others than JSON (such as YAML).
  
  @param factory
  @return mapper