code: private static int getStyle(String name) {
  
          if ("default".equals(name)) {
              return (DateFormat.DEFAULT);
          } else if ("short".equals(name)) {
              return (DateFormat.SHORT);
          } else if ("medium".equals(name)) {
              return (DateFormat.MEDIUM);
          } else if ("long".equals(name)) {
              return (DateFormat.LONG);
          } else if ("full".equals(name)) {
              return (DateFormat.FULL);
          } else {
              // PENDING(craigmcc) - i18n
              throw new ConverterException("Invalid style '" + name + '\'');
          }
  
      }
docs: <p>Return the style constant for the specified style name.</p>
  
  @param name Name of the style for which to return a constant
  @throws ConverterException if the style name is not valid