/**
  * @param name java.lang.String
  * @param port int
  */
 protected void changePortNumber(String name, int port) {
   TableItem[] items = ports.getItems();
   int size = items.length;
   for (int i = 0; i < size; i++) {
     ServerPort sp = (ServerPort) items[i].getData();
     if (sp.getName().equals(name)) {
       items[i].setData(new ServerPort(sp.getId(), sp.getName(), port, sp.getProtocol()));
       items[i].setText(1, port + "");
       CarbonServer31Utils.setServerConfigMapValue(server.getOriginal(), sp.getId(), port + "");
       CarbonServer31Utils.updateTransportXML(server.getOriginal());
       CarbonServer31Utils.updateAxis2XML(server.getOriginal());
       return;
     }
   }
 }
 /**
  * @param id java.lang.String
  * @param port int
  */
 protected void changePortNumber(String id, int port) {
   TableItem[] items = ports.getItems();
   int size = items.length;
   for (int i = 0; i < size; i++) {
     ServerPort sp = (ServerPort) items[i].getData();
     if (sp.getId().equals(id)) {
       items[i].setData(new ServerPort(id, sp.getName(), port, sp.getProtocol()));
       items[i].setText(1, port + "");
       /*if (i == selection) {
       	selectPort();
       }*/
       return;
     }
   }
 }