complete the summary generation from java