*
* @see de.miethxml.kabeja.tools.PostProcessor#process(de.miethxml.kabeja.dxf.DXFDocument)
*/
public void process(DXFDocument doc, Map<String,String> context) throws ProcessorException {
// get the active viewport
DXFView view = null;
Iterator<DXFView> i = doc.getDXFViewIterator();
if (context.containsKey(CONTEXT_OPTION_VIEW_NAME)) {
String name = (String) context.get(CONTEXT_OPTION_VIEW_NAME);
boolean found = false;
while (i.hasNext() && !found) {
DXFView v = (DXFView) i.next();
if (v.getName().trim().equals(name.trim())) {
view = v;
found = true;
}
}
} else if (i.hasNext()) {