params = new XmlBeansRestParamsTestPropertyHolder(null, RestParametersConfig.Factory.newInstance(), ParamLocation.METHOD);
}
RestParamsTableModel paramsTableModel = new RestParamsTableModel(params, RestParamsTableModel.Mode.MEDIUM);
RestParamsTable paramsTable = new RestParamsTable(params, false, paramsTableModel, ParamLocation.METHOD, true, false);
dialog.getFormField(Form.PARAMSTABLE).setProperty("component", paramsTable);
if (dialog.show()) {
RestMethod method = resource.addNewMethod(dialog.getValue(Form.RESOURCENAME));
method.setMethod(RestRequestInterface.HttpMethod.valueOf(dialog.getValue(Form.METHOD)));
paramsTable.extractParams(method.getParams(), ParamLocation.METHOD);
method.addPropertyChangeListener(paramsTableModel);
UISupport.select(method);
if (dialog.getBooleanValue(Form.CREATEREQUEST)) {
createRequest(method, method.getParams());