code: private String nameWithoutTaskID(String objectName) {
      int index = objectName.indexOf(HADOOP_ATTEMPT);
      if (index > 0) {
        String attempt = objectName.substring(index, objectName.lastIndexOf('.'));
        try {
          TaskAttemptID.forName(attempt);
          return objectName.replace("-" + attempt , "");
        } catch (IllegalArgumentException e) {
          return objectName;
        }
      }
      return objectName;
    }
docs: Accepts any object name.
  If object name is of the form
  a/b/c/m.data/part-r-00000-48ae3461-203f-4dd3-b141-a45426e2d26c
  -attempt_20160317132a_wrong_0000_m_000000_1.csv
  Then a/b/c/m.data/part-r-00000-48ae3461-203f-4dd3-b141-a45426e2d26c.csv is returned.
  Perform test that attempt_20160317132a_wrong_0000_m_000000_1 is valid
  task id identifier
  
  @param objectName
  @return unified object name