this.getClass().getName().replace('.','/') ) );
// deserialize the bgm
ObjectInputStream ois = new ObjectInputStream( is );
GrammarImpl g = (GrammarImpl)ois.readObject();
ois.close();
g.connect(new Grammar[]{g}); // connect to itself
return g;
} catch( Exception e ) {
throw new JAXBException(
Messages.format( Messages.UNABLE_TO_READ_BGM ),