question: private synchronized void initRegistry ( boolean force ) throws MatlabConnectionException { if ( _registry == null || force ) { try { _registry = LocalHostRMIHelper . createRegistry ( _options . getPort ( ) ) ; } catch ( Exception e ) { try { _registry = LocalHostRMIHelper . getRegistry ( _options . getPort ( ) ) ; } catch ( Exception ex ) { throw new MatlabConnectionException ( "Could not create or connect to the RMI registry" , ex ) ; } } } }
target:  Initializes the registry if it has not already been set up.