private Lifecycle getLifecycleForPhase ( String phase ) throws BuildFailureException , LifecycleExecutionException { Lifecycle lifecycle = ( Lifecycle ) getPhaseToLifecycleMap ( ) . get ( phase ) ; if ( lifecycle == null ) { throw new BuildFailureException ( "Unable to find lifecycle for phase '" + phase + "'" ) ; } return lifecycle ; }
Gets the lifecycle for phase .