Updated to remove deprecation warnings
Merge pull request #49 from jboss-fuse/ENTESB-1792