@Override
    public void process(Request request, TreeNode<Resource> resultNode, String href) {
      if (href.contains("/stacks/")) {
        resultNode.setName("mpack");

      }
    }
Post processing to change the name of the result node to mpack
ambari-server/src/main/java/org/apache/ambari/server/api/resources/MpackResourceDefinition.java