[JBWS-3733]:Allow enabling/disabling endpoint metrics;Remove transitive jaxb-core dependency