private ViewEntity getTargetView(String target) {
    Matcher matcher = VIEW_RESOURCE_TARGET_PATTERN.matcher(target);

    return matcher.matches() ? viewRegistry.getDefinition(matcher.group(2), matcher.group(3)) : null;
  }
Get the view that is the target of the request; null if not a view request.

@param target the target of the request
@return the view target; null if none
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariHandlerList.java