ModeShape/modeshape — pull request #1181 by hchiorean (2014-07-18 07:04:14+00:00)
Title: MODE-2259 Fixed the WebApp handlers.

Since the requirement is to be able to deploy WARs from within our EAP subsystem, the only way I was able to figure out how to do this is via the `DeploymentAddHandler` which only works in the `MODEL` stage.

The solution was to check in our handlers the `requiresRuntime(context)` and only perform the model change & invoke the handler for a "NORMAL" server.