code: protected Constructor getConstructor(Class type) {
          try {
              return type.getConstructor(String.class);
          }
          catch (NoSuchMethodException e) {
              throw new RuntimeException(
                      "Unable to find a constructor that accepts"
                      + " a single String argument in the "
                      + type.getName() + " class.", e);
          }
      }
docs: Gets a constructor for the specified class that accepts a single String
  argument.
  
  @param type the class to find the constructor for
  
  @return a constructor for the specified class that accepts a single
  String argument