public Object setStateParameterValue(String key, Object value) {
		int index = -1;
		for (int i = 0; i < parameterKeys.length; i++) {
			if (key.equals(parameterKeys[i])) {
				index = i;
				break; // exit loop
			}
		}

		// Check if card could be found
		if (index < 0) {
			return null;
		} // else return the found card if so
		if (parameterValues.length < parameterKeys.length) {
			Object[] temp = new Object[parameterKeys.length];
			for (int i = 0; i < parameterValues.length; i++) {
				temp[i] = parameterValues[i];
			}
			parameterValues = temp;
		}
		Object result = parameterValues[index];
		parameterValues[index] = value;
		return result;
	}