private void deployMetricsAdmin(final RexsterApplication application) {
if (hasAnythingChanged()) {
if (this.enableHttpReporter) {
// deploys the metrics servlet into rexster
wacMetrics = new WebappContext("metrics", "");
wacMetrics.setAttribute("com.codahale.metrics.servlets.MetricsServlet.registry", application.getMetricRegistry());
wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.rateUnit", this.convertRateTo);
wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.durationUnit", this.convertDurationTo);
final ServletRegistration sgMetrics = wacMetrics.addServlet("metrics", new MetricsServlet());