@GET
  @Path("/getWorkflowManagerConfigs")
  public Response getWorkflowConfigs() {
    try {
      HashMap<String, String> workflowConfigs = new HashMap<String, String>();
      workflowConfigs.put("nameNode", viewContext.getProperties().get("webhdfs.url"));
      workflowConfigs.put("resourceManager", viewContext.getProperties().get("yarn.resourcemanager.address"));
      workflowConfigs.put("userName", viewContext.getUsername());
      workflowConfigs.put("checkHomeDir",hdfsFileUtils.shouldCheckForHomeDir().toString());
      return Response.ok(workflowConfigs).build();
    } catch (Exception e) {
      LOGGER.error(e.getMessage(), e);
      throw new WfmWebException(e);
    }
  }
This is a class used to bridge the communication between the and the Oozie
API executing inside ambari.
contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java