code: public static void addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, Object theValue) {
  		RuntimeResourceDefinition def = theContext.getResourceDefinition(theParameters);
  		BaseRuntimeChildDefinition paramChild = def.getChildByName("parameter");
  		BaseRuntimeElementCompositeDefinition<?> paramChildElem = (BaseRuntimeElementCompositeDefinition<?>) paramChild.getChildByName("parameter");
  
  		addClientParameter(theContext, theValue, theParameters, paramChild, paramChildElem, theName);
  	}
docs: Add a paratemer value to a Parameters resource
  
  @param theContext    The FhirContext
  @param theParameters The Parameters resource
  @param theName       The parametr name
  @param theValue      The parameter value (can be a {@link IBaseResource resource} or a {@link IBaseDatatype datatype})