@ Override public FeatureCollector getCollector ( ) { JiraMode mode = featureSettings . isJiraBoardAsTeam ( ) ? JiraMode . Board : JiraMode . Team ; FeatureCollector collector = FeatureCollector . prototype ( mode ) ; FeatureCollector existing = featureCollectorRepository . findByName ( collector . getName ( ) ) ; if ( existing != null ) { collector . setLastRefreshTime ( existing . getLastRefreshTime ( ) ) ; } return collector ; }
Accessor method for the collector prototype object