}
private void addPropertyToLevel(String name, String value, ParameterStyle style, ParamLocation location,
String requestLevelValue) {
RestParamsPropertyHolder paramsPropertyHolder = null;
switch (location) {
case METHOD:
paramsPropertyHolder = getRequest().getRestMethod().getParams();
break;
case RESOURCE:
paramsPropertyHolder = getRequest().getResource().getParams();
break;
}
if (paramsPropertyHolder != null) {
paramsPropertyHolder.addProperty(name);
RestParamProperty addedParameter = paramsPropertyHolder.getProperty(name);
addedParameter.addPropertyChangeListener(restParamPropertyChangeListener);
addedParameter.setValue(value);
addedParameter.setDefaultValue(value);
addedParameter.setStyle(style);
//Override the request level value as well