// Path: src/main/java/minhhai2209/jirapluginconverter/utils/ExceptionUtils.java
// public class ExceptionUtils {
// 
//   public static void throwUnchecked(Exception e) {
//     throw new IllegalStateException(e);
//   }
// 
//   public static String getStackTrace(Exception e) {
//     return Throwables.getStackTraceAsString(e);
//   }
// }


import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.project.Project;
import com.atlassian.jira.project.ProjectManager;
import com.atlassian.jira.project.browse.BrowseContext;
import minhhai2209.jirapluginconverter.utils.ExceptionUtils;
import org.apache.commons.lang.text.StrSubstitutor;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
          Issue issue = (Issue) o;
          acContext.put("issue.key", issue.getKey());
          acContext.put("issue.id", issue.getId().toString());
          acContext.put("issuetype.id", issue.getIssueTypeId());
        }
      }


      o = contextParams.get("project");
      if (o != null) {
        if (o instanceof Project) {
          Project project = (Project) o;
          acContext.put("project.key", project.getKey());
          acContext.put("project.id", project.getId().toString());
        }
      }


      o = contextParams.get("postFunctionId");
      if (o != null) {
        acContext.put("postFunction.id", (String) o);
      }

      o = contextParams.get("postFunctionConfig");
      if (o != null) {
        acContext.put("postFunction.config", URLEncoder.encode((String) o, "UTF-8"));
      } else {
        acContext.put("postFunction.config", "");
      }
    } catch (Exception e) {
// Path: src/main/java/minhhai2209/jirapluginconverter/utils/ExceptionUtils.java
// public class ExceptionUtils {
// 
//   public static void throwUnchecked(Exception e) {
//     throw new IllegalStateException(e);
//   }
// 
//   public static String getStackTrace(Exception e) {
//     return Throwables.getStackTraceAsString(e);
//   }
// }


// Path: src/main/java/minhhai2209/jirapluginconverter/plugin/render/ParameterContextBuilder.java
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.MutableIssue;
import com.atlassian.jira.project.Project;
import com.atlassian.jira.project.ProjectManager;
import com.atlassian.jira.project.browse.BrowseContext;
import minhhai2209.jirapluginconverter.utils.ExceptionUtils;
import org.apache.commons.lang.text.StrSubstitutor;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;

          Issue issue = (Issue) o;
          acContext.put("issue.key", issue.getKey());
          acContext.put("issue.id", issue.getId().toString());
          acContext.put("issuetype.id", issue.getIssueTypeId());
        }
      }


      o = contextParams.get("project");
      if (o != null) {
        if (o instanceof Project) {
          Project project = (Project) o;
          acContext.put("project.key", project.getKey());
          acContext.put("project.id", project.getId().toString());
        }
      }


      o = contextParams.get("postFunctionId");
      if (o != null) {
        acContext.put("postFunction.id", (String) o);
      }

      o = contextParams.get("postFunctionConfig");
      if (o != null) {
        acContext.put("postFunction.config", URLEncoder.encode((String) o, "UTF-8"));
      } else {
        acContext.put("postFunction.config", "");
      }
    } catch (Exception e) {
      ExceptionUtils.throwUnchecked(e);