/** * Convert a Type System and Index Repository into a * CASMgrSerializer object which can be serialized * * @param casMgr the type system and index repo definitions * @return a serializable object version of these */ public static CASMgrSerializer serializeCASMgr(CASMgr casMgr) { CASMgrSerializer ser = new CASMgrSerializer(); ser.addTypeSystem((TypeSystemImpl) casMgr.getCAS().getTypeSystem()); ser.addIndexRepository((FSIndexRepositoryImpl) ((CASImpl) casMgr.getCAS()) .getBaseIndexRepository()); return ser; }