@@ -0,0 +1,775 @@
+package org.jboss.seam.faces.environment;%0A%0Aimport javax.enterprise.inject.Produces;%0Aimport javax.faces.context.FacesContext;%0Aimport javax.inject.Named;%0A%0A/**%0A * %3Cp%3E%0A * A producer which retrieves the Project Stage for the current%0A * request of the JavaServer Faces application, storing the result as a%0A * dependent-scoped bean instance.%0A * %3C/p%3E%0A * %0A * %3Cp%3E%0A * This producer is named, allowing the Project Stage to be accessed via EL:%0A * %3C/p%3E%0A * %0A * %3Cpre%3E%0A * #%7BprojectStage%7D%0A * %3C/pre%3E%0A * %0A * @author %3Ca href=%22mailto:bleathem@gmail.com%22%3EBrian Leathem%3C/a%3E%0A */%0Apublic class ProjectStageProducer%0A%7B%0A   @Named%0A   @Produces%0A   public String getProjectStage(final FacesContext context)%0A   %7B%0A      return context.getExternalContext().getInitParameter(%22javax.faces.PROJECT_STAGE%22);%0A   %7D%0A%7D%0A

Make ProjectStage available from EL