// Path: src/main/java/net/datenwerke/sandbox/exception/SandboxedTaskKilledException.java
// public class SandboxedTaskKilledException extends SandboxException {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 3308981843831471410L;
// 
// 	public SandboxedTaskKilledException(String msg) {
// 		super(msg);
// 	}
// }


import java.lang.reflect.Method;
import net.datenwerke.sandbox.exception.SandboxedTaskKilledException;
		started = true;
		try{
			if(runInContext)
				result = method.invoke(instance);
			else {
				String pw = service.restrict(context);
				try{
					result = method.invoke(instance);
				} finally {
					service.releaseRestriction(pw);
				}		
			}
			success = true;
		} catch (Exception e) {
			this.exception = e;
		}  
	}
	
	public Object getResult() {
		return result;
	}
	
	public boolean isSuccess() {
		return success;
	}
	
	public Exception getException() {
		return exception;
	}

// Path: src/main/java/net/datenwerke/sandbox/exception/SandboxedTaskKilledException.java
// public class SandboxedTaskKilledException extends SandboxException {
// 
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 3308981843831471410L;
// 
// 	public SandboxedTaskKilledException(String msg) {
// 		super(msg);
// 	}
// }


// Path: src/main/java/net/datenwerke/sandbox/SandboxedThread.java
import java.lang.reflect.Method;
import net.datenwerke.sandbox.exception.SandboxedTaskKilledException;

		started = true;
		try{
			if(runInContext)
				result = method.invoke(instance);
			else {
				String pw = service.restrict(context);
				try{
					result = method.invoke(instance);
				} finally {
					service.releaseRestriction(pw);
				}		
			}
			success = true;
		} catch (Exception e) {
			this.exception = e;
		}  
	}
	
	public Object getResult() {
		return result;
	}
	
	public boolean isSuccess() {
		return success;
	}
	
	public Exception getException() {
		return exception;
	}

	public void setKilled(boolean safe, SandboxedTaskKilledException exception) {