// Path: components/script-engine/org.jaggeryjs.scriptengine/src/main/java/org/jaggeryjs/scriptengine/exceptions/ScriptException.java
// public class ScriptException extends Exception {
// 
//     public ScriptException(String message) {
//         super(message);
//     }
// 
//     public ScriptException(Exception exception) {
//         super(exception);
//     }
// 
//     public ScriptException(String message, Exception exception) {
//         super(message, exception);
//     }
// }


import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.jaggeryjs.scriptengine.exceptions.ScriptException;
import org.jaggeryjs.scriptengine.security.RhinoSecurityDomain;
import javax.servlet.ServletContext;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.CodeSource;
import java.security.cert.Certificate;
package org.jaggeryjs.jaggery.core.manager;



public class JaggerySecurityDomain implements RhinoSecurityDomain {

    private String scriptPath;
    private CodeSource codeSource;
    private ServletContext servletContext;

    public JaggerySecurityDomain(String scriptPath, ServletContext servletContext) {
        this.scriptPath = scriptPath;
        this.servletContext = servletContext;
    }

    @SuppressFBWarnings("PATH_TRAVERSAL_IN")
// Path: components/script-engine/org.jaggeryjs.scriptengine/src/main/java/org/jaggeryjs/scriptengine/exceptions/ScriptException.java
// public class ScriptException extends Exception {
// 
//     public ScriptException(String message) {
//         super(message);
//     }
// 
//     public ScriptException(Exception exception) {
//         super(exception);
//     }
// 
//     public ScriptException(String message, Exception exception) {
//         super(message, exception);
//     }
// }


// Path: components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/JaggerySecurityDomain.java
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.jaggeryjs.scriptengine.exceptions.ScriptException;
import org.jaggeryjs.scriptengine.security.RhinoSecurityDomain;
import javax.servlet.ServletContext;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.CodeSource;
import java.security.cert.Certificate;

package org.jaggeryjs.jaggery.core.manager;



public class JaggerySecurityDomain implements RhinoSecurityDomain {

    private String scriptPath;
    private CodeSource codeSource;
    private ServletContext servletContext;

    public JaggerySecurityDomain(String scriptPath, ServletContext servletContext) {
        this.scriptPath = scriptPath;
        this.servletContext = servletContext;
    }

    @SuppressFBWarnings("PATH_TRAVERSAL_IN")
    public CodeSource getCodeSource() throws ScriptException {