private Storepoint getCurrentStorepoint ( Project phoenixProject ) { List < Storepoint > storepoints = phoenixProject . getStorepoints ( ) . getStorepoint ( ) ; Collections . sort ( storepoints , new Comparator < Storepoint > ( ) { @ Override public int compare ( Storepoint o1 , Storepoint o2 ) { return DateHelper . compare ( o2 . getCreationTime ( ) , o1 . getCreationTime ( ) ) ; } } ) ; return storepoints . get ( 0 ) ; }
Retrieve the most recent storepoint .