Enforce the fact that a parameter is mandatory
@param name The name of the parameter
@return The value found
@throws RuntimeException When a mandatory parameter is missing
962461
private String getMandatory(String name) {
		if (!config.containsKey(name)) {
			throw new RuntimeException(name + " parameter is missing.");
		}
		else {
			return config.getString(name);
		}

	}
573085
public ParameterValue getPathParameter(String name) {
        if (!getPathParameters().containsKey(name)) {
            return buildParameterValue();
        }

        return getPathParameters().get(name);
    }
593550
public T getValue(final String name) {
		if (name == null) {
			return null;
		}
		String uppercased = name.toUpperCase();
		return namesToValues.get(uppercased);
	}
601040
@Override
    public String getInitParameter(String name) {
        String value = this.parametersMap.get(name);
        return value;
    }
302675
public ParameterValue getParameter(String name) {
        if (!getParameters().containsKey(name)) {
            return buildParameterValue();
        }

        return getParameters().get(name);
    }
926103
public static void requireArgValid(@NotNull final String name, @NotNull final File value) throws ConstraintViolationException {
        // CHECKSTYLE:ON
        if (!value.exists()) {
            throw new ConstraintViolationException("The argument '" + name + "' is not an existing file: '" + value + "'");
        }
    }
133505
public List<V> getValues(String name) {
        List<V> vals = super.get(name);
        if ((vals == null) || vals.isEmpty()) {
            return null;
        }
        return vals;
    }
891127
public @NonNull Optional<T> get(final @NonNull String name) {
    return Optional.ofNullable(this.byName.get(name));
  }
683920
Parameter getCreateParameter(String name) {
		if (this.parameters == null)
			this.parameters = new HashMap<String, Parameter>();
		Parameter param = this.parameters.get(name);
		if (param == null) {
			param = new Parameter(name);
			this.parameters.put(name, param);
		}
		return param;
	}
581353
@Override
    public Object getParameterType(String name) {
        if (name.equals("checkAromaticity")) return Boolean.TRUE;
        return null;
    }
1177551
public static <T extends Collection<?>> T checkNotEmpty(final String name,
                                                            final T parameter) {
        if (parameter == null || parameter.size() == 0) {
            throw new IllegalArgumentException("Parameter named '" + name + "' should be filled!");
        }
        return parameter;
    }
42136
public String getParameterValue(String name) throws RepositoryConfigurationException
   {
      String value = getParameterValue(name, null);
      if (value == null)
         throw new RepositoryConfigurationException("Parameter " + name + " not found ");
      return value;
   }
345416
public String getParameter(String name)
    {
        if (!_paramsExtracted) extractParameters();
        return (String) _parameters.getValue(name, 0);
    }
907058
String getRequiredInitParameter(String name) throws ServletException {
        String value = getInitParameter(name);
        if (value == null) {
            throw new ServletException(MessageFormat.format(nls.getString("Missing.required.initialization.parameter","Missing required initialization parameter: {0}"), new Object[]{name}));
        }

        return value;
    }
873518
public final ParameterList getParameters(final String name) {
        final ParameterList list = new ParameterList();
        for (final Parameter p : parameters) {
            if (p.getName().equalsIgnoreCase(name)) {
                list.add(p);
            }
        }
        return list;
    }
1235731
protected boolean isRequired(Parameter parameter) {
        return parameter.isAnnotationPresent(Body.class)
                || parameter.isAnnotationPresent(Required.class)
                || parameter.isAnnotationPresent(NotNull.class);
    }
751982
public String queryParam(String name) {
		List<String> values = queryParams.get(name);
		return (values == null) ? null : values.get(0);
	}