throw new IllegalArgumentException("PatternArtifact must have a last Modified date.");
}
if (sha1 == null) {
throw new IllegalArgumentException("PatternArtifact must have a sha1 checksum.");
}
return new PatternArtifact(artifactoryUrl, uri, size, lastModified, sha1);
}