Source:
<code>private void readDynamicImagesFromUrl() { try { String appServer = OseeClientProperties.getOseeApplicationServer(); URI uri = UriBuilder.fromUri(appServer).path("images.json").build(); <START> <END> String imagesJson = JaxRsClient.newClient().target(uri).request(MediaType.TEXT_PLAIN).get(String.class); if (Strings.isValid(imagesJson)) { ObjectMapper mapper = new ObjectMapper(); DynamicImages images = mapper.readValue(imagesJson, DynamicImages.class); for (DynamicImage dynamicImage : images.getImages()) { try { if (Strings.isValid(dynamicImage.getImageUrl())) { URL url = new URL(dynamicImage.getImageUrl()); Image image = ImageDescriptor.createFromURL(url).createImage(); if (image != null) { IArtifactType artifactType = null; if (Strings.isNumeric(dynamicImage.getArtifactTypeUuid())) { artifactType = ArtifactTypeManager.getTypeByGuid(Long.valueOf(dynamicImage.getArtifactTypeUuid())); } if (artifactType == null && Strings.isValid(dynamicImage.getArtifactTypeName())) { artifactType = ArtifactTypeManager.getType(dynamicImage.getArtifactTypeName()); } if (artifactType != null) { ImageManager.storeOnImageRegistry(artifactType.getName(), ImageDescriptor.createFromImage(image)); ArtifactImageManager.registerOverrideImageProvider(this, artifactType); handledArtifactTypeNames.add(artifactType.getName()); } } } } catch (Exception ex) { OseeLog.logf(FrameworkArtifactImageProvider.class, Level.SEVERE, ex, "Error processing image [%s]", dynamicImage); } } } } catch (Exception ex) { OseeLog.logf(FrameworkArtifactImageProvider.class, Level.SEVERE, ex, "Error processing dynamic artifact images."); } }</code><technical_language>I assume is images.json</technical_language>

Target:
private void readDynamicImagesFromUrl() { try { String appServer = OseeClientProperties.getOseeApplicationServer(); URI uri = UriBuilder.fromUri(appServer).path("images.json").build(); String imagesJson = JaxRsClient.newClient().target(uri).request(MediaType.TEXT_PLAIN).get(String.class); if (Strings.isValid(imagesJson)) { ObjectMapper mapper = new ObjectMapper(); DynamicImages images = mapper.readValue(imagesJson, DynamicImages.class); for (DynamicImage dynamicImage : images.getImages()) { try { if (Strings.isValid(dynamicImage.getImageUrl())) { URL url = new URL(dynamicImage.getImageUrl()); Image image = ImageDescriptor.createFromURL(url).createImage(); if (image != null) { IArtifactType artifactType = null; if (Strings.isNumeric(dynamicImage.getArtifactTypeUuid())) { artifactType = ArtifactTypeManager.getTypeByGuid(Long.valueOf(dynamicImage.getArtifactTypeUuid())); } if (artifactType == null && Strings.isValid(dynamicImage.getArtifactTypeName())) { artifactType = ArtifactTypeManager.getType(dynamicImage.getArtifactTypeName()); } if (artifactType != null) { ArtifactImageManager.registerBaseImage(artifactType, ImageManager.createKeyedImage( artifactType.getGuid().toString(), ImageDescriptor.createFromImage(image)), this); } } } } catch (Exception ex) { OseeLog.logf(FrameworkArtifactImageProvider.class, Level.SEVERE, ex, "Error processing image [%s]", dynamicImage); } } } } catch (Exception ex) { OseeLog.logf(FrameworkArtifactImageProvider.class, Level.SEVERE, ex, "Error processing dynamic artifact images."); } }