class DefaultNetworkResponseParserFactory {

	public static void addJacksonParserIfPresent(IntegratedNetworkResponseParser.Builder builder) {
		if(ClassUtils.isPresent(JACKSON_2_X_CLASS_NAME)) {
			builder.addParser(new Jackson2NetworkResponseParser());
			return;
		}

		if(ClassUtils.isPresent(JACKSON_1_X_CLASS_NAME)) {
			builder.addParser(new JacksonNetworkResponseParser());
			return;
		}

		// Do nothing if Jackson doesn't exist.
	}

}