public void handleComponent(HttpRequest request, HttpResponder responder,
@QueryParam("prefixEntity") String metricPrefix) throws IOException {
getMetrics(request, responder, metricPrefix);
}
private void getMetrics(HttpRequest request, HttpResponder responder, String metricPrefix) {
<BUG>String contextPrefix = null;
try {</BUG>
String path = request.getUri();
String base = Constants.Gateway.API_VERSION_2 + "/metrics/available/apps";
if (path.startsWith(base)) {

public void handleComponent(HttpRequest request, HttpResponder responder,
@QueryParam("prefixEntity") String metricPrefix) throws IOException {
getMetrics(request, responder, metricPrefix);
}
private void getMetrics(HttpRequest request, HttpResponder responder, String metricPrefix) {
String contextPrefix = null;
Map<String, ContextNode> metricContextsMap = Maps.newHashMap();
try {
String path = request.getUri();
String base = Constants.Gateway.API_VERSION_2 + "/metrics/available/apps";
if (path.startsWith(base)) {
