private void buildGui() {
final String name = getModel().getName();
final Label scalarName = new Label(ID_SCALAR_NAME, name);
addOrReplace(scalarName);
final ImageValueFacet imageValueFacet = getModel().getTypeOfSpecification().getFacet(ImageValueFacet.class);
final ObjectAdapter adapter = getModel().getObject();
if (adapter != null) {
final java.awt.Image imageValue = imageValueFacet.getImage(adapter);
final RenderedDynamicImageResource imageResource = new RenderedDynamicImageResource(
imageValue.getWidth(null), imageValue.getHeight(null)) {
private static final long serialVersionUID = 1L;