public void generateMockService(WsdlInterface iface, boolean atCreation) {
XFormDialog dialog = ADialogBuilder.buildDialog(Form.class);
dialog.setBooleanValue(Form.ADD_ENDPOINT, true);
String[] names = ModelSupport.getNames(iface.getOperationList());
dialog.setOptions(Form.OPERATIONS, names);
XFormOptionsField operationsFormField = (XFormOptionsField) dialog.getFormField(Form.OPERATIONS);
operationsFormField.setSelectedOptions(names);
dialog.getFormField(Form.START_MOCKSERVICE).setEnabled(!atCreation);
WsdlProject project = iface.getProject();
String[] mockServices = ModelSupport.getNames(new String[]{CREATE_MOCKSUITE_OPTION},
project.getMockServiceList());
dialog.setOptions(Form.MOCKSERVICE, mockServices);
dialog.setValue(Form.PATH, "/mock" + iface.getName());
dialog.setValue(Form.PORT, "8088");
if (dialog.show()) {
List<String> operations = StringUtils.toStringList(operationsFormField.getSelectedOptions());
if (operations.size() == 0) {
UISupport.showErrorMessage("No Operations selected..");
return;
}