code: private Format getFormat(String desc)
      {
  
          if (registry != null)
          {
              String name = desc;
              String args = "";
              int i = desc.indexOf(START_FMT);
              if (i > 0)
              {
                  name = desc.substring(0, i).trim();
                  args = desc.substring(i + 1).trim();
              }
              FormatFactory factory = registry.get(name);
              if (factory != null)
              {
                  return factory.getFormat(name, args, getLocale());
              }
          }
          return null;
  
      }
docs: Get a custom format from a format description.
  
  @param desc
  String
  @return Format