repplication of https://github.com/phantomjinx/jbosstools-integration-stack/commit/d60b9d0a5a46f7d55afcb32bd4267777fed96c30