private void populateTypeDeclarationMaps ( ) throws ClassNotFoundException { for ( InternalKnowledgePackage pkg : this . pkgs . values ( ) ) { for ( TypeDeclaration type : pkg . getTypeDeclarations ( ) . values ( ) ) { type . setTypeClass ( this . rootClassLoader . loadClass ( type . getTypeClassName ( ) ) ) ; this . classTypeDeclaration . put ( type . getTypeClassName ( ) , type ) ; } } }
type classes must be re - wired after serialization