apply https://github.com/jbosstools/jbosstools-download.jboss.org/pull/240 but pick out only the last commit because the rest is already apppled