if( cache == null ) {
byte[] fileContents = getBytes( KieBuilderImpl.getCompilationCachePath( releaseId, kbaseName ) );
if( fileContents != null) {
ExtensionRegistry registry = KieModuleCacheHelper.buildRegistry();
try {
Header _header = KieModuleCacheHelper.readFromStreamWithHeaderPreloaded( new ByteArrayInputStream( fileContents ), registry );
KModuleCache _cache = KModuleCache.parseFrom( _header.getPayload() );
cache = new HashMap<String, Map<String,byte[]>>();
for( CompilationData _data : _cache.getCompilationDataList() ) {
Map<String,byte[]> bytecode = new HashMap<String, byte[]>();
cache.put( _data.getDialect(), bytecode );