{"action":"created","comment":{"url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/comments/85778637","pull_request_review_id":6473764,"id":85778637,"diff_hunk":"@@ -33,4 +52,34 @@ private OutputsUtil() {\n \n         return signatureReturnResultMap;\n     }\n+\n+    public static void putResponseIn(Map<String, String> queryMapResult) {\n+        if (queryMapResult != null) {\n+            if (queryMapResult.containsKey(STATUS_CODE) && (valueOf(SC_OK).equals(queryMapResult.get(STATUS_CODE))) && queryMapResult.containsKey(RETURN_RESULT) && !isEmpty(queryMapResult.get(RETURN_RESULT))) {\n+                queryMapResult.put(RETURN_CODE, SUCCESS);\n+            } else {\n+                queryMapResult.put(RETURN_CODE, FAILURE);\n+            }\n+        } else {\n+            queryMapResult = new HashMap<>();\n+            queryMapResult.put(EXCEPTION, \"Null response!\");\n+            queryMapResult.put(RETURN_CODE, FAILURE);\n+            queryMapResult.put(RETURN_RESULT, \"The query returned null response!\");\n+        }\n+    }\n+\n+    public static void extractResponseAsResult(Map<String, String> queryMapResult, String outputName, String xPathQuery) {\n+        XpathQuery xpathQueryAction = new XpathQuery();\n+        String xmlString = queryMapResult.get(RETURN_RESULT);\n+        //We make this workaround because the xml has an xmlns property in the tag and our operation can not parse the xml\n+        //this should be removed when the xml operation will be enhanced\n+        xmlString = xmlString.replace(XMLNS, WORKAROUND);","path":"cs-amazon/src/main/java/io/cloudslang/content/amazon/utils/OutputsUtil.java","position":63,"original_position":63,"commit_id":"552bbd6ee1210666ce8b583f5bfa55c9a68eadaa","original_commit_id":"552bbd6ee1210666ce8b583f5bfa55c9a68eadaa","user":{"login":"george-giloan","id":9443835,"avatar_url":"https://avatars.githubusercontent.com/u/9443835?v=3","gravatar_id":"","url":"https://api.github.com/users/george-giloan","html_url":"https://github.com/george-giloan","followers_url":"https://api.github.com/users/george-giloan/followers","following_url":"https://api.github.com/users/george-giloan/following{/other_user}","gists_url":"https://api.github.com/users/george-giloan/gists{/gist_id}","starred_url":"https://api.github.com/users/george-giloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/george-giloan/subscriptions","organizations_url":"https://api.github.com/users/george-giloan/orgs","repos_url":"https://api.github.com/users/george-giloan/repos","events_url":"https://api.github.com/users/george-giloan/events{/privacy}","received_events_url":"https://api.github.com/users/george-giloan/received_events","type":"User","site_admin":false},"body":"This line is prone to throwing a NPE. Check for null.","created_at":"2016-10-31T16:37:08Z","updated_at":"2016-10-31T17:01:59Z","html_url":"https://github.com/CloudSlang/cs-actions/pull/213#discussion_r85778637","pull_request_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213","_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/comments/85778637"},"html":{"href":"https://github.com/CloudSlang/cs-actions/pull/213#discussion_r85778637"},"pull_request":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213"}}},"pull_request":{"url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213","id":91373525,"html_url":"https://github.com/CloudSlang/cs-actions/pull/213","diff_url":"https://github.com/CloudSlang/cs-actions/pull/213.diff","patch_url":"https://github.com/CloudSlang/cs-actions/pull/213.patch","issue_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/213","number":213,"state":"open","locked":false,"title":"Enhancements/Refactors on Amazon","user":{"login":"Tirla-Alin","id":18460065,"avatar_url":"https://avatars.githubusercontent.com/u/18460065?v=3","gravatar_id":"","url":"https://api.github.com/users/Tirla-Alin","html_url":"https://github.com/Tirla-Alin","followers_url":"https://api.github.com/users/Tirla-Alin/followers","following_url":"https://api.github.com/users/Tirla-Alin/following{/other_user}","gists_url":"https://api.github.com/users/Tirla-Alin/gists{/gist_id}","starred_url":"https://api.github.com/users/Tirla-Alin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tirla-Alin/subscriptions","organizations_url":"https://api.github.com/users/Tirla-Alin/orgs","repos_url":"https://api.github.com/users/Tirla-Alin/repos","events_url":"https://api.github.com/users/Tirla-Alin/events{/privacy}","received_events_url":"https://api.github.com/users/Tirla-Alin/received_events","type":"User","site_admin":false},"body":"Exposed instanceId, attachmentId, networkInterfaceId;\nAdded failure machanism in case amazons status code is not 200\n","created_at":"2016-10-28T12:33:04Z","updated_at":"2016-10-31T17:01:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17c8aafc6dd944869e9585b8fc991527b6f0f104","assignee":{"login":"mihaitusa","id":10741864,"avatar_url":"https://avatars.githubusercontent.com/u/10741864?v=3","gravatar_id":"","url":"https://api.github.com/users/mihaitusa","html_url":"https://github.com/mihaitusa","followers_url":"https://api.github.com/users/mihaitusa/followers","following_url":"https://api.github.com/users/mihaitusa/following{/other_user}","gists_url":"https://api.github.com/users/mihaitusa/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaitusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaitusa/subscriptions","organizations_url":"https://api.github.com/users/mihaitusa/orgs","repos_url":"https://api.github.com/users/mihaitusa/repos","events_url":"https://api.github.com/users/mihaitusa/events{/privacy}","received_events_url":"https://api.github.com/users/mihaitusa/received_events","type":"User","site_admin":false},"assignees":[{"login":"mihaitusa","id":10741864,"avatar_url":"https://avatars.githubusercontent.com/u/10741864?v=3","gravatar_id":"","url":"https://api.github.com/users/mihaitusa","html_url":"https://github.com/mihaitusa","followers_url":"https://api.github.com/users/mihaitusa/followers","following_url":"https://api.github.com/users/mihaitusa/following{/other_user}","gists_url":"https://api.github.com/users/mihaitusa/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaitusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaitusa/subscriptions","organizations_url":"https://api.github.com/users/mihaitusa/orgs","repos_url":"https://api.github.com/users/mihaitusa/repos","events_url":"https://api.github.com/users/mihaitusa/events{/privacy}","received_events_url":"https://api.github.com/users/mihaitusa/received_events","type":"User","site_admin":false},{"login":"gituser173","id":12094982,"avatar_url":"https://avatars.githubusercontent.com/u/12094982?v=3","gravatar_id":"","url":"https://api.github.com/users/gituser173","html_url":"https://github.com/gituser173","followers_url":"https://api.github.com/users/gituser173/followers","following_url":"https://api.github.com/users/gituser173/following{/other_user}","gists_url":"https://api.github.com/users/gituser173/gists{/gist_id}","starred_url":"https://api.github.com/users/gituser173/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gituser173/subscriptions","organizations_url":"https://api.github.com/users/gituser173/orgs","repos_url":"https://api.github.com/users/gituser173/repos","events_url":"https://api.github.com/users/gituser173/events{/privacy}","received_events_url":"https://api.github.com/users/gituser173/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/CloudSlang/cs-actions/milestones/29","html_url":"https://github.com/CloudSlang/cs-actions/milestones/1.1%20-%20sprint%200","labels_url":"https://api.github.com/repos/CloudSlang/cs-actions/milestones/29/labels","id":2018441,"number":29,"title":"1.1 - sprint 0","description":"","creator":{"login":"meshipeer","id":6988387,"avatar_url":"https://avatars.githubusercontent.com/u/6988387?v=3","gravatar_id":"","url":"https://api.github.com/users/meshipeer","html_url":"https://github.com/meshipeer","followers_url":"https://api.github.com/users/meshipeer/followers","following_url":"https://api.github.com/users/meshipeer/following{/other_user}","gists_url":"https://api.github.com/users/meshipeer/gists{/gist_id}","starred_url":"https://api.github.com/users/meshipeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshipeer/subscriptions","organizations_url":"https://api.github.com/users/meshipeer/orgs","repos_url":"https://api.github.com/users/meshipeer/repos","events_url":"https://api.github.com/users/meshipeer/events{/privacy}","received_events_url":"https://api.github.com/users/meshipeer/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":16,"state":"open","created_at":"2016-09-21T07:49:17Z","updated_at":"2016-10-28T12:33:16Z","due_on":"2016-10-29T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213/commits","review_comments_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213/comments","review_comment_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/213/comments","statuses_url":"https://api.github.com/repos/CloudSlang/cs-actions/statuses/552bbd6ee1210666ce8b583f5bfa55c9a68eadaa","head":{"label":"CloudSlang:feature/amazon_expose_ids","ref":"feature/amazon_expose_ids","sha":"552bbd6ee1210666ce8b583f5bfa55c9a68eadaa","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28305374,"name":"cs-actions","full_name":"CloudSlang/cs-actions","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cs-actions","description":"CloudSlang Content Java Actions","fork":false,"url":"https://api.github.com/repos/CloudSlang/cs-actions","forks_url":"https://api.github.com/repos/CloudSlang/cs-actions/forks","keys_url":"https://api.github.com/repos/CloudSlang/cs-actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cs-actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cs-actions/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cs-actions/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cs-actions/events","assignees_url":"https://api.github.com/repos/CloudSlang/cs-actions/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cs-actions/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cs-actions/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cs-actions/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cs-actions/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cs-actions/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cs-actions/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cs-actions/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cs-actions/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cs-actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cs-actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cs-actions/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cs-actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cs-actions/merges","archive_url":"https://api.github.com/repos/CloudSlang/cs-actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cs-actions/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cs-actions/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cs-actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cs-actions/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cs-actions/releases{/id}","deployments_url":"https://api.github.com/repos/CloudSlang/cs-actions/deployments","created_at":"2014-12-21T16:30:37Z","updated_at":"2016-10-24T08:25:17Z","pushed_at":"2016-10-31T15:19:24Z","git_url":"git://github.com/CloudSlang/cs-actions.git","ssh_url":"git@github.com:CloudSlang/cs-actions.git","clone_url":"https://github.com/CloudSlang/cs-actions.git","svn_url":"https://github.com/CloudSlang/cs-actions","homepage":"","size":4512,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":9,"forks":32,"open_issues":9,"watchers":27,"default_branch":"master"}},"base":{"label":"CloudSlang:master","ref":"master","sha":"02401f1486a03a0192dfde575c7793790a415a3e","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28305374,"name":"cs-actions","full_name":"CloudSlang/cs-actions","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cs-actions","description":"CloudSlang Content Java Actions","fork":false,"url":"https://api.github.com/repos/CloudSlang/cs-actions","forks_url":"https://api.github.com/repos/CloudSlang/cs-actions/forks","keys_url":"https://api.github.com/repos/CloudSlang/cs-actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cs-actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cs-actions/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cs-actions/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cs-actions/events","assignees_url":"https://api.github.com/repos/CloudSlang/cs-actions/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cs-actions/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cs-actions/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cs-actions/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cs-actions/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cs-actions/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cs-actions/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cs-actions/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cs-actions/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cs-actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cs-actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cs-actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cs-actions/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cs-actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cs-actions/merges","archive_url":"https://api.github.com/repos/CloudSlang/cs-actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cs-actions/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cs-actions/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cs-actions/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cs-actions/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cs-actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cs-actions/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cs-actions/releases{/id}","deployments_url":"https://api.github.com/repos/CloudSlang/cs-actions/deployments","created_at":"2014-12-21T16:30:37Z","updated_at":"2016-10-24T08:25:17Z","pushed_at":"2016-10-31T15:19:24Z","git_url":"git://github.com/CloudSlang/cs-actions.git","ssh_url":"git@github.com:CloudSlang/cs-actions.git","clone_url":"https://github.com/CloudSlang/cs-actions.git","svn_url":"https://github.com/CloudSlang/cs-actions","homepage":"","size":4512,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":9,"forks":32,"open_issues":9,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213"},"html":{"href":"https://github.com/CloudSlang/cs-actions/pull/213"},"issue":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/issues/213"},"comments":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/CloudSlang/cs-actions/statuses/552bbd6ee1210666ce8b583f5bfa55c9a68eadaa"}}}}
{"actor":{"display_login":"george-giloan"}}