class ArtifactAdapter implements ArtifactAndLicense {

   public static String createKey(License license) {
      // valid keys are likely: numbers and letters but no special chars or even '-'
      int hashCode = license.getId().hashCode();
      String prefix = hashCode < 0 ? "n" : "p";
      return prefix + Math.abs(hashCode);
   }

   public  ArtifactAdapter(Artifact artifact);

}