/**
   * (non-Javadoc) {@inheritDoc}
   *
   * @see com.stericsson.sdk.equipment.IEquipmentTask#execute() {@inheritDoc}
   */
  public EquipmentTaskResult execute() {
    notifyTaskMessage(
        "Write Global Data Set: devicePath: "
            + devicePath
            + ","
            + " dataLength: "
            + dataLength
            + "sourcePath:"
            + sourcePath);
    notifyTaskStart();

    try {
      mobileEquipment.getMock().setResult(0);
    } catch (Exception e) {
      resultCode = 1;
      resultMessage = e.getMessage();
    }

    int result =
        (Integer)
            mobileEquipment.sendCommand(
                LCDefinitions.METHOD_NAME_PS_WRITE_GLOBAL_DATA_SET,
                new Object[] {devicePath, dataLength, sourcePath, useBulk, null},
                this);

    if (result != 0) {
      resultCode = result;
      try {
        resultMessage = mobileEquipment.getMock().getLoaderErrorDesc(result);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }

    return new EquipmentTaskResult(resultCode, resultMessage, null, false);
  }
 /** {@inheritDoc} */
 public String toString() {
   return getId() + "@" + mobileEquipment.toString();
 }