- many minor changes in order to implement NewSumInterfaceJava. 
TODO check getSummary.