sipApp.setMainservletName(value);
// create a mapping for this servlet
ExistsOperand existsOperand = new ExistsOperand();
existsOperand.setVariable("request.method");
Pattern pattern = new Pattern();
pattern.addCondition(existsOperand);
ServletMapping servletMapping = new ServletMapping();
servletMapping.setServletName(value);
servletMapping.setPattern(pattern);