public void addActiveHandler(ContentHandler handler,ModeUsage attributeModeUsage){
  activeHandlers.addElement(handler);
  activeHandlersAttributeModeUsage.addElement(attributeModeUsage);
  attributeProcessing=Math.max(attributeProcessing,attributeModeUsage.getAttributeProcessing());
  if (attributeModeUsage.isContextDependent())   contextDependent=true;
}

public void addActiveHandler ( ContentHandler handler , ModeUsage attributeModeUsage ) { activeHandlers . addElement ( handler ) ; activeHandlersAttributeModeUsage . addElement ( attributeModeUsage ) ; attributeProcessing = Math . max ( attributeProcessing , attributeModeUsage . getAttributeProcessing ( ) ) ; if ( attributeModeUsage . isContextDependent ( ) ) contextDependent = true ; }
adds a handler for a mode usage .
