package com.x.program.center.jaxrs.applicationserver;

import com.x.base.core.project.server.ApplicationServer;

public class ActionUpdate extends ActionBase {

	public ApplicationServer execute(String name, ApplicationServer wrapIn) throws Exception {
//		ApplicationServer server = null;
//		for (ApplicationServer o : ThisApplication.applicationServers) {
//			if (Objects.equals(o.getName(), name)) {
//				server = o;
//			} else {
//				if (StringUtils.equalsIgnoreCase(o.getName(), wrapIn.getName())) {
//					throw new Exception("applicationServer{name:" + o.getName() + "} already existed.");
//				}
//			}
//		}
//		if (null == server) {
//			throw new Exception("applicationServer{name:" + name + "} not existed.");
//		}
//		wrapIn.copyTo(server);
//		ThisApplication.applicationServers.sort();
//		ApplicationServers.store(ThisApplication.applicationServers);
//		return server;
		return null;
	}

}
