Source:
<code>public SourceHandler(SourceConfiguration sourceConfiguration) { this.sourceConfiguration = sourceConfiguration; this.metrics = sourceConfiguration.getMetrics(); String strNamePostfix = ""; if (sourceConfiguration.getInDescription() != null && sourceConfiguration.getInDescription().getName() != null) { strNamePostfix = "-" + sourceConfiguration.getInDescription().getName(); Scheme scheme = sourceConfiguration.getScheme(); boolean enableAdvancedForLatencyView = sourceConfiguration.getBooleanValue( PassThroughConstants.SYNAPSE_PASSTHROUGH_LATENCY_ADVANCE_VIEW, false); boolean enableAdvancedForS2SView = sourceConfiguration.getBooleanValue( PassThroughConstants.SYNAPSE_PASSTHROUGH_S2SLATENCY_ADVANCE_VIEW, false); this.latencyView = new LatencyView(PassThroughConstants.PASSTHROUGH_LATENCY_VIEW, scheme.isSSL(), strNamePostfix, enableAdvancedForLatencyView); this.s2sLatencyView = new LatencyView(PassThroughConstants.PASSTHROUGH_S2SLATENCY_VIEW, scheme.isSSL(), strNamePostfix, enableAdvancedForS2SView); this.threadingView = new ThreadingView(PassThroughConstants.PASSTHOUGH_HTTP_SERVER_WORKER, true, 50); } Properties props = MiscellaneousUtil.loadProperties(PROPERTY_FILE); String validationProperty = MiscellaneousUtil.getProperty(props, MESSAGE_SIZE_VALIDATION, "false"); String validMaxMessageSizeStr = MiscellaneousUtil .getProperty(props, VALID_MAX_MESSAGE_SIZE, String.valueOf(Integer.MAX_VALUE)); isMessageSizeValidationEnabled = Boolean.valueOf(validationProperty); try { validMaxMessageSize = Integer.valueOf(validMaxMessageSizeStr); } catch (NumberFormatException e) { <START> log.warn("Invalid max message size configured for property \"valid.max.message.size.in.bytes\", " <END> + "setting the Integer MAX_VALUE as the valid maximum message size"); validMaxMessageSize = Integer.MAX_VALUE; } }</code><technical_language>is reason for throwing exception ? need include exception stacktrace</technical_language>

Target:
public SourceHandler(SourceConfiguration sourceConfiguration) { this.sourceConfiguration = sourceConfiguration; this.metrics = sourceConfiguration.getMetrics(); String strNamePostfix = ""; if (sourceConfiguration.getInDescription() != null && sourceConfiguration.getInDescription().getName() != null) { strNamePostfix = "-" + sourceConfiguration.getInDescription().getName(); Scheme scheme = sourceConfiguration.getScheme(); boolean enableAdvancedForLatencyView = sourceConfiguration.getBooleanValue( PassThroughConstants.SYNAPSE_PASSTHROUGH_LATENCY_ADVANCE_VIEW, false); boolean enableAdvancedForS2SView = sourceConfiguration.getBooleanValue( PassThroughConstants.SYNAPSE_PASSTHROUGH_S2SLATENCY_ADVANCE_VIEW, false); this.latencyView = new LatencyView(PassThroughConstants.PASSTHROUGH_LATENCY_VIEW, scheme.isSSL(), strNamePostfix, enableAdvancedForLatencyView); this.s2sLatencyView = new LatencyView(PassThroughConstants.PASSTHROUGH_S2SLATENCY_VIEW, scheme.isSSL(), strNamePostfix, enableAdvancedForS2SView); this.threadingView = new ThreadingView(PassThroughConstants.PASSTHOUGH_HTTP_SERVER_WORKER, true, 50); } Properties props = MiscellaneousUtil.loadProperties(PROPERTY_FILE); String validationProperty = MiscellaneousUtil.getProperty(props, MESSAGE_SIZE_VALIDATION, "false"); String validMaxMessageSizeStr = MiscellaneousUtil .getProperty(props, VALID_MAX_MESSAGE_SIZE, String.valueOf(Integer.MAX_VALUE)); isMessageSizeValidationEnabled = Boolean.valueOf(validationProperty); try { validMaxMessageSize = Integer.valueOf(validMaxMessageSizeStr); } catch (NumberFormatException e) { log.warn("Invalid max message size configured for property \"valid.max.message.size.in.bytes\", " + "setting the Integer MAX_VALUE as the valid maximum message size", e); validMaxMessageSize = Integer.MAX_VALUE; } }