This needs to be done with a proper dependency. A DUP in the previous Phase should ensure the DeploymentUnitPhaseService for Phase.INSTALL depends on this service (see DeploymentPhaseContext.addDependency) and the service should be obtained as an attachment.