code: private String get_exported_ior(final Connection connection) throws DevFailed {
  		Database db;
  		if (connection.url.host == null) {
  	    	db = ApiUtil.get_db_obj();
  		} else {
  	    	db = ApiUtil.get_db_obj(connection.url.host, connection.url.strPort);
  		}
  		final DbDevImportInfo info = db.import_device(connection.devname);
  		String result = null;
  		if (info.exported) {
  	    	result = info.ior;
  		}
  
  		// check if TACO
  		if (info.is_taco) {
  	    	connection.url.protocol = TACO;
  		} else {
  	    	// Manage Access control
  	    	try {
  				initCtrlAccess(connection);
  			}
  			catch(DevFailed e) {
  				System.err.println(e.errors[0].desc);
  			}
  		}
  		return result;
      }
docs: ===================================================================