code: public String removePartOrSuccess(String objectKey) {
      String res = objectKey;
      int index = objectKey.indexOf(HADOOP_PART);
      if (index > 0) {
        res = objectKey.substring(0, index);
      } else if (objectKey.indexOf(HADOOP_SUCCESS) > 0) {
        res =  objectKey.substring(0, objectKey.indexOf(HADOOP_SUCCESS));
      }
      return res;
    }
docs: Extracts from the object key an object name without part or _success
  For example
  data/a/d.parquet/part-00001-abb1f63385e9-attempt_20180503184805_0006_m_000007_0.snappy.parquet
  
  transformed into
  
  dataset/a/data.parquet/
  
  @param objectKey object key
  @return unified name