final DeploymentInfo deploymentInfo = new DeploymentInfo();
deploymentInfo.setClassLoader(ParticipantService.class.getClassLoader());
deploymentInfo.setContextPath(contextPath);
deploymentInfo.setDeploymentName(name);
deploymentInfo.addServlets(getResteasyServlet());
deploymentInfo.addListener(getResteasyListener());
deploymentInfo.addListener(getRestATListener());
for (Entry<String, String> entry : initialParameters.entrySet()) {
deploymentInfo.addInitParameter(entry.getKey(), entry.getValue());
}