I already wrote the JIRA if you want to see, this is the url:
https://issues.jboss.org/browse/AS7-4910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696543#comment-12696543