<BUG>final ProcessorInput dataInput = getInputByName(INPUT_DATA);final File file = getFile(config.getDirectory(), config.getFile(), config.getUrl(), getLocationData(), config.isMakeDirectories(), getPropertySet());</BUG><CONTEXT>final Config config = readCacheInputAsObject(context, getInputByName(INPUT_CONFIG), new CacheableInputReader<Config>() {public Config read(PipelineContext context, ProcessorInput input) {return new Config(readInputAsDOM4J(context, input));}});<extra_id_0>if (!config.isAppend() && file.exists()) {final boolean deleted = file.delete();</CONTEXT>
final String directory = config.getDirectory() != null ? config.getDirectory() : getPropertySet().getString(DIRECTORY_PROPERTY);final File file = NetUtils.getFile(directory, config.getFile(), config.getUrl(), getLocationData(), config.isMakeDirectories());