/**
 * This code sample demonstrates how to add a custom tag to an EXIF package.
 */
public class SetCustomExifTag {
    public static void run() {
        try (Metadata metadata = new Metadata(Constants.TiffWithExif)) {
            IExif root = (IExif) metadata.getRootPackage();

            // Set the EXIF package if it's missing
            if (root.getExifPackage() == null) {