throw new IllegalArgumentException("Version cannot be empty.");
AddonId id = new AddonId();
id.name = name;
id.version = new SingleVersion(version);
if (apiVersion == null || apiVersion.trim().isEmpty())
id.apiVersion = EmptyVersion.getInstance();
else
id.apiVersion = new SingleVersion(apiVersion);
return id;
}