Source:
<code>private Config saveUsersResources(HttpServletRequest request) throws JumbuneException { String yamlData = null; String yamlTempLoc = TEMP_DIR + File.separator + System.currentTimeMillis(); File repository = new File(JobConfig.getJumbuneHome() + yamlTempLoc); makeDirectories(repository); DiskFileItemFactory factory = new DiskFileItemFactory(); factory.setRepository(repository); factory.setSizeThreshold(-1); ServletFileUpload upload = new ServletFileUpload(factory); Config config = null; try { List<FileItem> uploadedItems = upload.parseRequest(request); FileItem jarFileItem = null; for (FileItem fileItem : uploadedItems) { if (fileItem.getFieldName().equals("jsonData")) { StringWriter writer = new StringWriter(); IOUtils.copy(fileItem.getInputStream(), writer); yamlData = writer.toString(); this.jsonString = yamlData; config = WebUtil.prepareJobConfig(yamlData); if (config == null) { return null; } JobConfig jobConfig = (JobConfig) config; <START> LOG.info("jobConfig: " + jobConfig); <END> JobConfigUtil.checkIfJumbuneHomeEndsWithSlash(config); } } if (config != null) { JobConfigUtil jobConfigUtil = new JobConfigUtil(config); jobConfigUtil.createJumbuneDirectories(); } deleteTempFiles(repository); return config; } catch (FileUploadException e) { LOG.error("Could not find given jar file ", e); throw JumbuneRuntimeException.throwFileNotLoadedException(e.getStackTrace()); } catch (IOException e) { LOG.error("Could not find given jar/yaml file ", e); throw JumbuneRuntimeException.throwUnresponsiveIOException(e.getStackTrace()); } catch (Exception e) { LOG.error("Unable to create jumbune directories ", e); throw new JumbuneException(ErrorCodesAndMessages.COULD_NOT_CREATE_DIRECTORY,e); } }</code><technical_language>debug</technical_language>

Target:
private Config saveUsersResources(HttpServletRequest request) throws JumbuneException { String yamlData = null; String yamlTempLoc = TEMP_DIR + File.separator + System.currentTimeMillis(); File repository = new File(JobConfig.getJumbuneHome() + yamlTempLoc); makeDirectories(repository); DiskFileItemFactory factory = new DiskFileItemFactory(); factory.setRepository(repository); factory.setSizeThreshold(-1); ServletFileUpload upload = new ServletFileUpload(factory); Config config = null; try { List<FileItem> uploadedItems = upload.parseRequest(request); FileItem jarFileItem = null; for (FileItem fileItem : uploadedItems) { if (fileItem.getFieldName().equals("jsonData")) { StringWriter writer = new StringWriter(); IOUtils.copy(fileItem.getInputStream(), writer); yamlData = writer.toString(); this.jsonString = yamlData; config = WebUtil.prepareJobConfig(yamlData); if (config == null) { return null; } JobConfig jobConfig = (JobConfig) config; LOG.debug("jobConfig: " + jobConfig); JobConfigUtil.checkIfJumbuneHomeEndsWithSlash(config); } } if (config != null) { JobConfigUtil jobConfigUtil = new JobConfigUtil(config); jobConfigUtil.createJumbuneDirectories(); } deleteTempFiles(repository); return config; } catch (FileUploadException e) { LOG.error("Could not find given jar file ", e); throw JumbuneRuntimeException.throwFileNotLoadedException(e.getStackTrace()); } catch (IOException e) { LOG.error("Could not find given jar/yaml file ", e); throw JumbuneRuntimeException.throwUnresponsiveIOException(e.getStackTrace()); } catch (Exception e) { LOG.error("Unable to create jumbune directories ", e); throw new JumbuneException(ErrorCodesAndMessages.COULD_NOT_CREATE_DIRECTORY,e); } }