private void sendCommittedText(){
  AttributedString as=new AttributedString(buffer.toString());
  context.dispatchInputMethodEvent(InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,as.getIterator(),buffer.length(),TextHitInfo.leading(insertionPoint),null);
  buffer.setLength(0);
  insertionPoint=0;
  format=UNSET;
}

private void sendCommittedText ( ) { AttributedString as = new AttributedString ( buffer . toString ( ) ) ; context . dispatchInputMethodEvent ( InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , as . getIterator ( ) , buffer . length ( ) , TextHitInfo . leading ( insertionPoint ) , null ) ; buffer . setLength ( 0 ) ; insertionPoint = 0 ; format = UNSET ; }
send the committed text to the client .
