if ((value = attributes.getProperty(ElementTags.UNDERLYING)) != null) { if (new Boolean(value).booleanValue()) align |= Image.UNDERLYING;
finally { if (is != null) { is.close(); }
    public static Image getInstance(Properties attributes) throws BadElementException, MalformedURLException, IOException {        String value;        Image image = Image.getInstance(attributes.getProperty(ElementTags.URL));        int align = 0;        if ((value = attributes.getProperty(ElementTags.ALIGN)) != null) {            if (ElementTags.ALIGN_LEFT.equals(value)) align |= Image.LEFT;            else if (ElementTags.ALIGN_RIGHT.equals(value)) align |= Image.RIGHT;            else if (ElementTags.ALIGN_MIDDLE.equals(value)) align |= Image.MIDDLE;        }        if ((value = attributes.getProperty(ElementTags.UNDERLYING)) != null) {            if (new Boolean(value).booleanValue()) align |= Image.UNDERLYING;        }        if ((value = attributes.getProperty(ElementTags.TEXTWRAP)) != null) {            if (new Boolean(value).booleanValue()) align |= Image.TEXTWRAP;        }        image.setAlignment(align);        if ((value = attributes.getProperty(ElementTags.ALT)) != null) {            image.setAlt(value);        }        String x;        String y;        if (((x = attributes.getProperty(ElementTags.ABSOLUTEX)) != null)        && ((y = attributes.getProperty(ElementTags.ABSOLUTEX)) != null)) {            image.setAbsolutePosition(Float.parseFloat(x + "f"), Float.parseFloat(y + "f"));        }        if ((value = attributes.getProperty(ElementTags.PLAINWIDTH)) != null) {            image.scaleAbsoluteWidth(Float.parseFloat(value + "f"));        }        if ((value = attributes.getProperty(ElementTags.PLAINHEIGHT)) != null) {            image.scaleAbsoluteHeight(Float.parseFloat(value + "f"));        }        if ((value = attributes.getProperty(ElementTags.ROTATION)) != null) {            image.setRotation(Float.parseFloat(value + "f"));        }        return image;    }