// add a bitmap image
Element container = chapter2Doc.createElement("p");
container.setClassName("container");
body2.add(container);
ImageElement bitmap = chapter2Doc.createImageElement("img");
bitmap.setClassName("bitmap");
bitmap.setImageResource(imageResource);
container.add(bitmap);
// and another paragraph
Element paragraph3 = chapter2Doc.createElement("p");
StringBuffer sb3 = new StringBuffer();