private void sendComposedText(){
  AttributedString as=new AttributedString(buffer.toString());
  as.addAttribute(TextAttribute.INPUT_METHOD_HIGHLIGHT,InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT);
  context.dispatchInputMethodEvent(InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,as.getIterator(),0,TextHitInfo.leading(insertionPoint),null);
}

private void sendComposedText ( ) { AttributedString as = new AttributedString ( buffer . toString ( ) ) ; as . addAttribute ( TextAttribute . INPUT_METHOD_HIGHLIGHT , InputMethodHighlight . SELECTED_RAW_TEXT_HIGHLIGHT ) ; context . dispatchInputMethodEvent ( InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , as . getIterator ( ) , 0 , TextHitInfo . leading ( insertionPoint ) , null ) ; }
send the composed text to the client .
