public static String makeDynamicPartNameNoTrailingSeperator(Map<String, String> spec) {
    String partName = null;
    try {
      partName = makePartNameUtil(spec, false, true);
    }
    catch (MetaException e) {
      // This exception is not thrown when dynamic=true. This is a Noop and
      // can be ignored.
    }
    return partName;
  }
Given a dynamic partition specification, return the path corresponding to the
static part of partition specification. This is basically similar to makePartName
but we get rid of MetaException since it is not serializable. This method skips
the trailing path seperator also.

@param spec
@return string representation of the static part of the partition specification.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java