Source:
<code>public void initialize(OperatorContext op) throws Exception { super.initialize(op); trace.log(TraceLevel.INFO, "Using authentication type: " + authenticationType); if(authenticationFile != null) { authenticationFile = authenticationFile.trim(); } URI baseConfigURI = op.getPE().getApplicationDirectory().toURI(); auth = AuthHelper.getAuthenticator(authenticationType, PathConversionHelper.convertToAbsPath(baseConfigURI, authenticationFile), authenticationProperties); rc = new RetryController(maxRetries, retryDelay); hasOutputPort = op.getStreamingOutputs().size() == 1; final StreamSchema inputSchema = getInput(0).getStreamSchema(); if((!headerContentType.equals(MIME_FORM) && !headerContentType.equals(MIME_JSON))) { if(inputSchema.getAttributeCount() != 1) throw new Exception("Only a single attribute is permitted in the input stream for content type \"" + headerContentType + "\""); } if (headerContentType.equals(MIME_FORM)) processType = ProcessType.TUPLE_FORM; else if (headerContentType.equals(MIME_JSON)) { processType = ProcessType.TUPLE_JSON; if (inputSchema.getAttributeCount() == 1) { Attribute attr = inputSchema.getAttribute(0); if (isStandardJsonAttribute(attr)) { processType = ProcessType.PURE_JSON; } } else { for (Attribute attr : inputSchema) { if (isStandardJsonAttribute(attr)) { processType = ProcessType.MIX_JSON; break; } } } } <START> if (postAttributes.size() > 0) { <END> if ((headerContentType.equals(MIME_FORM) || headerContentType.equals(MIME_JSON))) { } else { throw new Exception(" PostAttributes specified with headerContentType value other than: " + MIME_FORM + "," + MIME_JSON + "; found '" + headerContentType + "'."); } } trace.log(TraceLevel.INFO, "URL: " + url); }</code><technical_language>This a compile time check, a runtime</technical_language>

Target:
public void initialize(OperatorContext op) throws Exception { super.initialize(op); trace.log(TraceLevel.INFO, "Using authentication type: " + authenticationType); if(authenticationFile != null) { authenticationFile = authenticationFile.trim(); } URI baseConfigURI = op.getPE().getApplicationDirectory().toURI(); auth = AuthHelper.getAuthenticator(authenticationType, PathConversionHelper.convertToAbsPath(baseConfigURI, authenticationFile), authenticationProperties); rc = new RetryController(maxRetries, retryDelay); hasOutputPort = op.getStreamingOutputs().size() == 1; final StreamSchema inputSchema = getInput(0).getStreamSchema(); if((!headerContentType.equals(MIME_FORM) && !headerContentType.equals(MIME_JSON))) { if(inputSchema.getAttributeCount() != 1) throw new Exception("Only a single attribute is permitted in the input stream for content type \"" + headerContentType + "\""); } if (headerContentType.equals(MIME_FORM)) processType = ProcessType.TUPLE_FORM; else if (headerContentType.equals(MIME_JSON)) { processType = ProcessType.TUPLE_JSON; if (inputSchema.getAttributeCount() == 1) { Attribute attr = inputSchema.getAttribute(0); if (isStandardJsonAttribute(attr)) { processType = ProcessType.PURE_JSON; } } else { for (Attribute attr : inputSchema) { if (isStandardJsonAttribute(attr)) { processType = ProcessType.MIX_JSON; break; } } } } trace.log(TraceLevel.INFO, "URL: " + url); }