KieServices ks = KieServices.Factory.get();
// to array, so we don't mutate that which we are iterating over
if ( !gavs.isEmpty() ) {
for ( ReleaseId releaseId : gavs.keySet().toArray( new ReleaseId[gavs.size()] ) ) {
KieContainer kContainer = ks.newKieContainer(releaseId);
if ( kContainer == null ) {
log.error( "Unable to retrieve KieContainer for @ReleaseId({})",
releaseId.toString() );
} else {
log.debug( "KieContainer retrieved for @ReleaseId({})",