// Path: src/main/java/org/robotframework/formslibrary/FormsLibrary.java
// public class FormsLibrary extends SwingLibrary {
// 
// 	// TODO stop extending SwingLibrary, only include classes that are really
// 	// needed?
// 
// 	public FormsLibrary() {
// 		super("org/robotframework/formslibrary/keyword/*.class");
// 	}
// 
// }


import java.io.IOException;
import java.util.Map;
import org.robotframework.formslibrary.FormsLibrary;
import org.robotframework.remoteserver.RemoteServer;
import org.robotframework.remoteswinglibrary.remote.DaemonRemoteServer;
/*
 * Copyright 2014 Nokia Solutions and Networks Oyj
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.robotframework.remoteswinglibrary.agent;




public class ServerThread implements Runnable {
    int apport;
    boolean debug;
    RobotConnection robotConnection;

    public ServerThread(RobotConnection robotConnection,  int apport, boolean debug) {
        this.robotConnection = robotConnection;
        this.apport = apport;
        this.debug = debug;
    }

    public void run()  {
        try {
            RemoteServer server = new DaemonRemoteServer();
// Path: src/main/java/org/robotframework/formslibrary/FormsLibrary.java
// public class FormsLibrary extends SwingLibrary {
// 
// 	// TODO stop extending SwingLibrary, only include classes that are really
// 	// needed?
// 
// 	public FormsLibrary() {
// 		super("org/robotframework/formslibrary/keyword/*.class");
// 	}
// 
// }


// Path: src/main/java/org/robotframework/remoteswinglibrary/agent/ServerThread.java
import java.io.IOException;
import java.util.Map;
import org.robotframework.formslibrary.FormsLibrary;
import org.robotframework.remoteserver.RemoteServer;
import org.robotframework.remoteswinglibrary.remote.DaemonRemoteServer;

/*
 * Copyright 2014 Nokia Solutions and Networks Oyj
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.robotframework.remoteswinglibrary.agent;




public class ServerThread implements Runnable {
    int apport;
    boolean debug;
    RobotConnection robotConnection;

    public ServerThread(RobotConnection robotConnection,  int apport, boolean debug) {
        this.robotConnection = robotConnection;
        this.apport = apport;
        this.debug = debug;
    }

    public void run()  {
        try {
            RemoteServer server = new DaemonRemoteServer();
            server.putLibrary("/RPC2", new FormsLibrary());