@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit du = phaseContext.getDeploymentUnit();
Object config = du.removeAttachment(GateInConfigurationKey.KEY);
if (config != null) {
du.removeAttachment(PortletWarKey.INSTANCE);
du.removeAttachment(GateInEarKey.KEY);
du.removeAttachment(GateInExtKey.KEY);
}
}