protected ExecutionStatistics getOrCreateModuleStatistics ( ModuleId moduleId ) { ExecutionStatistics moduleStats = statistics . get ( moduleId ) ; if ( moduleStats == null ) { moduleStats = new ExecutionStatistics ( ) ; ExecutionStatistics existing = statistics . put ( moduleId , moduleStats ) ; if ( existing != null ) { moduleStats = existing ; } } return moduleStats ; }
Helper method to get or create a ExecutionStatistics instance