/**
   * notifyMasterOfReduceTaskCompletion: Get the master's communicator and call reduceTaskCompleted
   * on it
   *
   * @param finished: the reduce task that just completed
   */
  private void notifyMasterOfReduceTaskCompletion(ReduceTask finished) {
    Registry registry;
    String masterNode = communicator.getMasterHostName();

    try {
      registry = LocateRegistry.getRegistry(masterNode, communicator.getREGISTRY_PORT());
      CommunicatorInterface communicator =
          (CommunicatorInterface) registry.lookup("communicator_" + masterNode);
      communicator.reduceTaskCompleted(finished);
    } catch (RemoteException e) {
      e.printStackTrace();
    } catch (NotBoundException e) {
      e.printStackTrace();
    }
  }