public ProxyProcess addTransfer() throws IOException {
   synchronized (processLock) {
     if (proxyProcess == null) {
       proxyProcess = new ProxyProcess(new ServerSocket(7777));
       proxyProcess.start();
     }
   }
   proxyProcess.addTransfer();
   return proxyProcess;
 }
 public void cleanup() {
   synchronized (processLock) {
     if (proxyProcess != null) {
       proxyProcess.stop();
       proxyProcess = null;
     }
   }
 }
 public void removeTransfer() {
   if (proxyProcess == null) {
     return;
   }
   proxyProcess.removeTransfer();
 }