/** * Constructor for the RuntimableDefinition part. * * @param origin the RuntimableDefinition. */ private DefinitionDTO(Definition origin) { this.name = origin.getName(); this.label = origin.getDisplayName(); // Get the first icon URL from the definition. for (DefinitionImageType imageType : DefinitionImageType.values()) { if (origin.getImagePath(imageType) != null) { this.iconURL = buildIconUrl(origin, imageType); break; } } this.iconKey = origin.getIconKey(); }