public synchronized ScanManagerConfig readFromFile() throws IOException {
  final File f=new File(file);
  if (!f.exists())   throw new IOException("No such file: " + file);
  if (!f.canRead())   throw new IOException("Can't read file: " + file);
  try {
    return read(f);
  }
 catch (  JAXBException x) {
    final IOException io=new IOException("Failed to read SessionConfigBean from " + file + ": "+ x,x);
    throw io;
  }
}

public synchronized ScanManagerConfig readFromFile ( ) throws IOException { final File f = new File ( file ) ; if ( ! f . exists ( ) ) throw new IOException ( "No such file: " + file ) ; if ( ! f . canRead ( ) ) throw new IOException ( "Can't read file: " + file ) ; try { return read ( f ) ; } catch ( JAXBException x ) { final IOException io = new IOException ( "Failed to read SessionConfigBean from " + file + ": " + x , x ) ; throw io ; } }
reads the configuration from the xml configuration file .
