@Override public String update(String xml){
  try {
    return query("/update?stream.body=" + URLEncoder.encode(xml,"UTF-8"));
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

@ Override public String update ( String xml ) { try { return query ( "/update?stream.body=" + URLEncoder . encode ( xml , "UTF-8" ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
processes an " update " ( add , commit or optimize ) and returns the response as a string .
