protected void initCommandsDocument() throws XindiceException, FileNotFoundException {
// Absolute path to the commands.xml file, relative to $XINDICE_HOME
File xindiceHome = new File( System.getProperty( Xindice.PROP_XINDICE_HOME ) );
File commandsFile = new File( xindiceHome, "config/commands.xml" );
DOMParser parser = new DOMParser();
commandsDocument = parser.toDocument( new FileInputStream( commandsFile ) );
}