protected Map<String, Map<String, byte[]>> getCompilationCache( String kbaseName ) {
Map<String, Map<String, byte[]>> cache = compilationCache.get( kbaseName );
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[]>>();