package org.jboss.seam.faces.environment;

import javax.enterprise.inject.Produces;
import javax.faces.context.FacesContext;
import javax.inject.Named;

/**
 * <p>
 * A producer which retrieves the Project Stage for the current
 * request of the JavaServer Faces application, storing the result as a
 * dependent-scoped bean instance.
 * </p>
 * 
 * <p>
 * This producer is named, allowing the Project Stage to be accessed via EL:
 * </p>
 * 
 * <pre>
 * #{projectStage}
 * </pre>
 * 
 * @author <a href="mailto:bleathem@gmail.com">Brian Leathem</a>
 */
public class ProjectStageProducer
{
   @Named
   @Produces
   public String getProjectStage(final FacesContext context)
   {
      return context.getExternalContext().getInitParameter("javax.faces.PROJECT_STAGE");
   }
}

@@ -77,16 +77,61 @@
 oduces;%0A
+import javax.faces.application.ProjectStage;%0A
 import j
@@ -239,25 +239,24 @@
  the Project
- 
 Stage for th
@@ -268,19 +268,16 @@
 rent
-%0A *
  request
  of 
@@ -272,16 +272,19 @@
  request
+%0A *
  of the 
@@ -344,19 +344,20 @@
 %0A * 
-dependent-s
+ApplicationS
 cope
@@ -665,14 +665,20 @@
 lic 
-String
+ProjectStage
  get
@@ -751,70 +751,38 @@
 .get
-ExternalContext().getInitParameter(%22javax.faces.PROJECT_STAGE%22
+Application().getProjectStage(
 );%0A 

Make ProjectStage available from EL - using Enum