DeploymentException seems to be never thrown