Handling doctype in jbean and importing streams in Binary.