https://issues.jboss.org/browse/HORNETQ-1122 check-direct optimization
    from user's forum: https://community.jboss.org/thread/220795?tstart=0
Merge pull request #826 from clebertsuconic/Branch_2_2_AS7

https://issues.jboss.org/browse/HORNETQ-1122 check-direct optimization