Source:
<code>public AgentJobRequest agentJobRequestArgsToDTO( final ArgumentDelegates.JobRequestArguments jobRequestArguments ) throws ConversionException { final ExecutionResourceCriteria criteria = new ExecutionResourceCriteria( jobRequestArguments.getClusterCriteria(), jobRequestArguments.getCommandCriterion(), jobRequestArguments.getApplicationIds() ); final String jobVersion = jobRequestArguments.getJobVersion(); final JobMetadata.Builder jobMetadataBuilder; if (StringUtils.isBlank(jobVersion)) { jobMetadataBuilder = new JobMetadata.Builder( jobRequestArguments.getJobName(), jobRequestArguments.getUser() ); } else { jobMetadataBuilder = new JobMetadata.Builder( jobRequestArguments.getJobName(), jobRequestArguments.getUser(), jobVersion ); } jobMetadataBuilder .withEmail(jobRequestArguments.getEmail()) .withGrouping(jobRequestArguments.getGrouping()) .withGroupingInstance(jobRequestArguments.getGroupingInstance()) .withMetadata(jobRequestArguments.getJobMetadata()) .withDescription(jobRequestArguments.getJobDescription()) .withTags(jobRequestArguments.getJobTags()) .build(); final AgentConfigRequest requestedAgentConfig = new AgentConfigRequest .Builder() .withRequestedJobDirectoryLocation(jobRequestArguments.getJobDirectoryLocation()) .withTimeoutRequested(jobRequestArguments.getTimeout()) <START> .withArchiveLocation(jobRequestArguments.getArchiveLocation()) <END> .withInteractive(jobRequestArguments.isInteractive()) .build(); final AgentJobRequest agentJobRequest = new AgentJobRequest.Builder( jobMetadataBuilder.build(), criteria, requestedAgentConfig ) .withCommandArgs(jobRequestArguments.getCommandArguments()) .withRequestedId(jobRequestArguments.getJobId()) .build(); final Set<ConstraintViolation<AgentJobRequest>> violations = this.validator.validate(agentJobRequest); if (!violations.isEmpty()) { throw new ConversionException(violations); } return agentJobRequest; }</code><technical_language>This commit missing a things.. meant for review yet</technical_language>

Target:
public AgentJobRequest agentJobRequestArgsToDTO( final ArgumentDelegates.JobRequestArguments jobRequestArguments ) throws ConversionException { final ExecutionResourceCriteria criteria = new ExecutionResourceCriteria( jobRequestArguments.getClusterCriteria(), jobRequestArguments.getCommandCriterion(), jobRequestArguments.getApplicationIds() ); final String jobVersion = jobRequestArguments.getJobVersion(); final JobMetadata.Builder jobMetadataBuilder; if (StringUtils.isBlank(jobVersion)) { jobMetadataBuilder = new JobMetadata.Builder( jobRequestArguments.getJobName(), jobRequestArguments.getUser() ); } else { jobMetadataBuilder = new JobMetadata.Builder( jobRequestArguments.getJobName(), jobRequestArguments.getUser(), jobVersion ); } jobMetadataBuilder .withEmail(jobRequestArguments.getEmail()) .withGrouping(jobRequestArguments.getGrouping()) .withGroupingInstance(jobRequestArguments.getGroupingInstance()) .withMetadata(jobRequestArguments.getJobMetadata()) .withDescription(jobRequestArguments.getJobDescription()) .withTags(jobRequestArguments.getJobTags()) .build(); final AgentConfigRequest requestedAgentConfig = new AgentConfigRequest .Builder() .withRequestedJobDirectoryLocation(jobRequestArguments.getJobDirectoryLocation()) .withTimeoutRequested(jobRequestArguments.getTimeout()) .withInteractive(jobRequestArguments.isInteractive()) .build(); final JobArchivalDataRequest jobArchivalDataRequest = new JobArchivalDataRequest .Builder() .withRequestedArchiveLocationPrefix(jobRequestArguments.getArchiveLocationPrefix()) .build(); final AgentJobRequest agentJobRequest = new AgentJobRequest.Builder( jobMetadataBuilder.build(), criteria, requestedAgentConfig, jobArchivalDataRequest ) .withCommandArgs(jobRequestArguments.getCommandArguments()) .withRequestedId(jobRequestArguments.getJobId()) .build(); final Set<ConstraintViolation<AgentJobRequest>> violations = this.validator.validate(agentJobRequest); if (!violations.isEmpty()) { throw new ConversionException(violations); } return agentJobRequest; }