code: private String getProjectStageNameFromJNDI() {
  
          try {
  
              InitialContext context = new InitialContext();
              Object obj = context.lookup(ProjectStage.PROJECT_STAGE_JNDI_NAME);
              if (obj != null) {
                  return obj.toString().trim();
              }
  
          } catch (NamingException e) {
              // ignore
          }
  
          return null;
      }
docs: Performs a JNDI lookup to obtain the current project stage. The method use the standard JNDI name for the JSF project
  stage for the lookup
  
  @return name bound to JNDI or <code>null</code>