Detecect endpoints by making a HEAD request instead of querying the configprops since it is broken when having a second applicationContext