Question: **What I have:**

1. AWS API gateway setup as a proxy (/{proxy+})
2. A custom Auth function which authorizes the incoming request for this proxy setup.
3. The custom auth function is passing the additional information I want to pass along to the request via the "context" object, like so:

{
 "principalId": "yyyyyyyy",
 "policyDocument": {
 "Version": "2012-10-17",
 "Statement": [
 {
 "Action": "execute-api:Invoke",
 "Effect": "Allow|Deny",
 "Resource": "some arn"
 }
 ]
 },
 "context": {
 "customInfo1": "hello",
 "customInfo2": "world"
 }
}

**What I need:**

1. I need to pass the custom information passed in the context object above into custom headers into the request as it passes along to the target function.

**What I know:**

1. If this wasn't a proxy, I could have used a mapping template to get the desired result.

Answer: 
First you set JAVA\_HOME variable in system environment variables.
Means MyComputer Properties => Advanced System settings => Environment variables => System Variables add new variable, variable name JAVA\_HOME and value jdk installation path like C:\Program Files\Java\jdk1.7.0\_79
Go to File->Other Settings->Default Project Structure->SDKs. Then change or set the JDK home path.