question: protected ReplacedElement newIrreplaceableImageElement ( int cssWidth , int cssHeight ) { BufferedImage missingImage ; ReplacedElement mre ; try { missingImage = ImageUtil . createCompatibleBufferedImage ( cssWidth , cssHeight , BufferedImage . TYPE_INT_RGB ) ; Graphics2D g = missingImage . createGraphics ( ) ; g . setColor ( Color . BLACK ) ; g . setBackground ( Color . WHITE ) ; g . setFont ( new Font ( "Serif" , Font . PLAIN , 12 ) ) ; g . drawString ( "Missing" , 0 , 12 ) ; g . dispose ( ) ; mre = new ImageReplacedElement ( missingImage , cssWidth , cssHeight ) ; } catch ( Exception e ) { mre = new EmptyReplacedElement ( cssWidth < 0 ? 0 : cssWidth , cssHeight < 0 ? 0 : cssHeight ) ; } return mre ; }
target:  Returns a ReplacedElement for some element in the stream which should be replaceable, but is not. This might be the case for an element like img, where the source isn't provided.