try {
monitor.beginTask("", 1);
WebapplicationFactory factory = WebapplicationFactory.eINSTANCE;
Servlet servlet = factory.createServlet();
servlet.setServletName(getTypeName());
ServletType servletType = factory.createServletType();
servletType.setClassName(getPackageFragment().getElementName() + '.' + getTypeName() + "Impl");
servlet.setWebType(servletType);
IVirtualComponent component = ComponentCore.createComponent(Util.getProject(projectText));
WebArtifactEdit artifactEdit = WebArtifactEdit.getWebArtifactEditForWrite(component);