code: private static Artifact validateArtifact(final Artifact artifact) {
          if (!artifact.getFile().isFile()) {
              throw new IllegalArgumentException("<"+artifact.getFile()+"> is not a file");
          }
          return artifact;
      }
docs: Validates that specified {@link Artifact} is a file.
  @param artifact