Summary API reworked in java