result.setOwner(null);
final FilePath paintedSourcesPath = build.getProjectRootDir().child("cobertura");
paintedSourcesPath.mkdirs();
// Get System default encoding;
SourceEncoding encoding = SourceEncoding.getEncoding(System.getProperty("file.encoding"));
SourceCodePainter painter = new SourceCodePainter(paintedSourcesPath, sourcePaths, result.getPaintedSources(), listener,
encoding);
new FilePath(pom.getBasedir()).act(painter);
if (!build.execute(new MavenCoberturaActionAdder(listener))) {
listener.getLogger().println("[JENKINS] Unable to add link to cobertura results");