ArtifactResult (ArtifactRequest request, ArtifactResultData resultData) { ArtifactResult result = new ArtifactResult(request); result.setArtifact(resultData.getArtifact()); result.setRepository(resultData.getRepository()); List<Exception> exceptions = resultData.getExceptions(); if (null != exceptions) { for (Exception exception : exceptions) { result.addException(exception); } } return result; }