code: public static String toWindows(String spec) {
        if (spec == null) {
           return StringUtils.EMPTY;
        }
        return spec.replaceAll("/+", "\\\\");
     }
docs: Converts file spec to windows path separators
  
  @param spec The file spec
  @return windows style path spec