{"action":"created","comment":{"url":"https://api.github.com/repos/mulesoft/mule/pulls/comments/56007233","id":56007233,"diff_hunk":"@@ -213,23 +210,63 @@ private static boolean shouldAdvertise(MetadataType parameterType, Map<Class<? e\n         return map;\n     }\n \n-    public static void parseDisplayAnnotations(AnnotatedElement annotatedElement, HasModelProperties parameter)\n+    private static void parseDisplayAnnotations(AnnotatedElement annotatedElement, DisplayModelPropertyBuilder builder)\n     {\n         Password passwordAnnotation = annotatedElement.getAnnotation(Password.class);\n         if (passwordAnnotation != null)\n         {\n-            parameter.withModelProperty(PasswordModelProperty.KEY, new ImmutablePasswordModelProperty());\n+            builder.withPassword(true);\n         }\n         Text textAnnotation = annotatedElement.getAnnotation(Text.class);\n         if (textAnnotation != null)\n         {\n-            parameter.withModelProperty(TextModelProperty.KEY, new ImmutableTextModelProperty());\n+            builder.withText(true);\n         }\n+    }\n+\n+    private static void parsePlacementAnnotation(AnnotatedElement annotatedElement, DisplayModelPropertyBuilder builder)\n+    {\n         Placement placementAnnotation = annotatedElement.getAnnotation(Placement.class);\n         if (placementAnnotation != null)\n         {\n-            parameter.withModelProperty(PlacementModelProperty.KEY, new ImmutablePlacementModelProperty(placementAnnotation.order(), placementAnnotation.group(), placementAnnotation.tab()));\n+            builder.order(placementAnnotation.order()).groupName(placementAnnotation.group()).tabName(placementAnnotation.tab());\n+        }\n+    }\n+\n+    private static void parseDisplayNameAnnotation(AnnotatedElement annotatedElement, String fieldName, DisplayModelPropertyBuilder builder)\n+    {\n+        DisplayName displayNameAnnotation = annotatedElement.getAnnotation(DisplayName.class);\n+        String displayName = (displayNameAnnotation != null) ? displayNameAnnotation.value() : getFormattedDisplayName(fieldName);\n+        builder.displayName(displayName);\n+    }\n+\n+    private static String getFormattedDisplayName(String fieldName)\n+    {\n+        return StringUtils.join(StringUtils.splitByCharacterTypeCamelCase(StringUtils.capitalize(fieldName)), ' ');\n+    }\n+\n+    public static DisplayModelProperty parseDisplayAnnotations(AnnotatedElement annotatedElement, String name)\n+    {\n+        return parseDisplayAnnotations(annotatedElement, name, DisplayModelPropertyBuilder.create());\n+    }\n+\n+    public static DisplayModelProperty parseDisplayAnnotations(AnnotatedElement annotatedElement, String name, DisplayModelPropertyBuilder builder)\n+    {\n+        if (displayAnnotationIsPresent(annotatedElement))\n+        {\n+            parseDisplayAnnotations(annotatedElement, builder);\n+            parsePlacementAnnotation(annotatedElement, builder);\n+            parseDisplayNameAnnotation(annotatedElement, name, builder);\n+            //parameter.withModelProperty(DisplayModelProperty.KEY, builder.build());","path":"modules/extensions-support/src/main/java/org/mule/module/extension/internal/introspection/describer/MuleExtensionAnnotationParser.java","position":89,"original_position":89,"commit_id":"9bb92f7de7763c9c461a7e0c84187ff3f5695455","original_commit_id":"9bb92f7de7763c9c461a7e0c84187ff3f5695455","user":{"login":"marianogonzalez","id":1272771,"avatar_url":"https://avatars.githubusercontent.com/u/1272771?v=3","gravatar_id":"","url":"https://api.github.com/users/marianogonzalez","html_url":"https://github.com/marianogonzalez","followers_url":"https://api.github.com/users/marianogonzalez/followers","following_url":"https://api.github.com/users/marianogonzalez/following{/other_user}","gists_url":"https://api.github.com/users/marianogonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/marianogonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianogonzalez/subscriptions","organizations_url":"https://api.github.com/users/marianogonzalez/orgs","repos_url":"https://api.github.com/users/marianogonzalez/repos","events_url":"https://api.github.com/users/marianogonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/marianogonzalez/received_events","type":"User","site_admin":false},"body":"remove commented line","created_at":"2016-03-14T14:22:10Z","updated_at":"2016-03-14T14:22:10Z","html_url":"https://github.com/mulesoft/mule/pull/2470#discussion_r56007233","pull_request_url":"https://api.github.com/repos/mulesoft/mule/pulls/2470","_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/comments/56007233"},"html":{"href":"https://github.com/mulesoft/mule/pull/2470#discussion_r56007233"},"pull_request":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/2470"}}},"pull_request":{"url":"https://api.github.com/repos/mulesoft/mule/pulls/2470","id":62280801,"html_url":"https://github.com/mulesoft/mule/pull/2470","diff_url":"https://github.com/mulesoft/mule/pull/2470.diff","patch_url":"https://github.com/mulesoft/mule/pull/2470.patch","issue_url":"https://api.github.com/repos/mulesoft/mule/issues/2470","number":2470,"state":"open","locked":false,"title":"MULE-9418: Added @DisplayName annotation to specify a custom name for…","user":{"login":"pablomusumeci","id":5360549,"avatar_url":"https://avatars.githubusercontent.com/u/5360549?v=3","gravatar_id":"","url":"https://api.github.com/users/pablomusumeci","html_url":"https://github.com/pablomusumeci","followers_url":"https://api.github.com/users/pablomusumeci/followers","following_url":"https://api.github.com/users/pablomusumeci/following{/other_user}","gists_url":"https://api.github.com/users/pablomusumeci/gists{/gist_id}","starred_url":"https://api.github.com/users/pablomusumeci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablomusumeci/subscriptions","organizations_url":"https://api.github.com/users/pablomusumeci/orgs","repos_url":"https://api.github.com/users/pablomusumeci/repos","events_url":"https://api.github.com/users/pablomusumeci/events{/privacy}","received_events_url":"https://api.github.com/users/pablomusumeci/received_events","type":"User","site_admin":false},"body":"… the UI","created_at":"2016-03-09T19:19:47Z","updated_at":"2016-03-14T14:22:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08161a32aa0e4ef5c9409248b8fc75cc98ef4a0d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mulesoft/mule/pulls/2470/commits","review_comments_url":"https://api.github.com/repos/mulesoft/mule/pulls/2470/comments","review_comment_url":"https://api.github.com/repos/mulesoft/mule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mulesoft/mule/issues/2470/comments","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/9bb92f7de7763c9c461a7e0c84187ff3f5695455","head":{"label":"mulesoft:MULE-9418","ref":"MULE-9418","sha":"9bb92f7de7763c9c461a7e0c84187ff3f5695455","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":7058562,"name":"mule","full_name":"mulesoft/mule","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/mule","description":"Mule Community Edition","fork":false,"url":"https://api.github.com/repos/mulesoft/mule","forks_url":"https://api.github.com/repos/mulesoft/mule/forks","keys_url":"https://api.github.com/repos/mulesoft/mule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule/events","assignees_url":"https://api.github.com/repos/mulesoft/mule/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule/merges","archive_url":"https://api.github.com/repos/mulesoft/mule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule/deployments","created_at":"2012-12-07T19:23:06Z","updated_at":"2016-03-14T10:32:37Z","pushed_at":"2016-03-14T14:13:28Z","git_url":"git://github.com/mulesoft/mule.git","ssh_url":"git@github.com:mulesoft/mule.git","clone_url":"https://github.com/mulesoft/mule.git","svn_url":"https://github.com/mulesoft/mule","homepage":null,"size":222682,"stargazers_count":293,"watchers_count":293,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":332,"mirror_url":null,"open_issues_count":20,"forks":332,"open_issues":20,"watchers":293,"default_branch":"mule-3.x"}},"base":{"label":"mulesoft:mule-4.x","ref":"mule-4.x","sha":"2773e5b57cdbe80fb88c7e928d7bd309a92d0968","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":7058562,"name":"mule","full_name":"mulesoft/mule","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/mule","description":"Mule Community Edition","fork":false,"url":"https://api.github.com/repos/mulesoft/mule","forks_url":"https://api.github.com/repos/mulesoft/mule/forks","keys_url":"https://api.github.com/repos/mulesoft/mule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule/events","assignees_url":"https://api.github.com/repos/mulesoft/mule/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule/merges","archive_url":"https://api.github.com/repos/mulesoft/mule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule/deployments","created_at":"2012-12-07T19:23:06Z","updated_at":"2016-03-14T10:32:37Z","pushed_at":"2016-03-14T14:13:28Z","git_url":"git://github.com/mulesoft/mule.git","ssh_url":"git@github.com:mulesoft/mule.git","clone_url":"https://github.com/mulesoft/mule.git","svn_url":"https://github.com/mulesoft/mule","homepage":null,"size":222682,"stargazers_count":293,"watchers_count":293,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":332,"mirror_url":null,"open_issues_count":20,"forks":332,"open_issues":20,"watchers":293,"default_branch":"mule-3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/2470"},"html":{"href":"https://github.com/mulesoft/mule/pull/2470"},"issue":{"href":"https://api.github.com/repos/mulesoft/mule/issues/2470"},"comments":{"href":"https://api.github.com/repos/mulesoft/mule/issues/2470/comments"},"review_comments":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/2470/comments"},"review_comment":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/2470/commits"},"statuses":{"href":"https://api.github.com/repos/mulesoft/mule/statuses/9bb92f7de7763c9c461a7e0c84187ff3f5695455"}}}}