code: protected Map<String, Object> initializeVariables(final Set<StringTextValue<?>> allSettings)
  	{
  		final Map<String, Object> variables = new HashMap<>();
  
  		// 2. put the component id that is the initiator for the js code...
  		if (withComponentId)
  		{
  			variables.put(JavascriptGenerator.COMPONENT_ID, componentId);
  		}
  		for (final StringTextValue<?> textValue : allSettings)
  		{
  			if (!textValue.isInitialValue())
  			{
  				switch (textValue.getType())
  				{
  					case STRING :
  						if (textValue.getQuotationMarkType().equals(QuotationMarkType.NONE))
  						{
  							variables.put(textValue.getName(), textValue.getValue());
  							break;
  						}
  						TextTemplateExtensions.setVariableWithSingleQuotationMarks(
  							textValue.getName(), textValue.getValue(), variables);
  						break;
  					case ENUM :
  						TextTemplateExtensions.setVariableWithSingleQuotationMarks(
  							textValue.getName(), ((ValueEnum)textValue.getValue()).getValue(),
  							variables);
  						break;
  					case STRING_INTEGER :
  						TextTemplateExtensions.setVariableWithSingleQuotationMarks(
  							textValue.getName(), textValue.getValue(), variables);
  						break;
  					default :
  						variables.put(textValue.getName(), textValue.getValue());
  						break;
  				}
  			}
  		}
  		return variables;
  	}
docs: Sets the values to the map. If the default value is set than it will not be added to the map
  for later not to generate js for it.
  
  @param allSettings
  All settings as a list of StringTextValue(s).
  @return the map