@@ -52,11 +52,11 @@ public static EjbJarProxy createEjbJarProxy(FileObject fo) throws IOException {
5252 inputStream .close ();
5353 }
5454 }
55-
55+
5656 public static EjbJarProxy createEjbJarProxy (Reader reader ) throws IOException {
5757 return createEjbJarProxy (new InputSource (reader ));
5858 }
59-
59+
6060 public static EjbJarProxy createEjbJarProxy (InputSource inputSource ) throws IOException {
6161 try {
6262 return (EjbJarProxy ) DDProvider .getDefault ().getDDRoot (inputSource );
@@ -73,8 +73,8 @@ public static EjbJarProxy createEjbJarProxy(InputSource inputSource) throws IOEx
7373 return ejbJarProxy ;
7474 }
7575 }
76-
77-
76+
77+
7878 public static void merge (EjbJarProxy ejbJarProxy , Reader reader ) {
7979 try {
8080 EjbJarProxy newEjbJarProxy = createEjbJarProxy (reader );
@@ -95,10 +95,10 @@ public static void merge(EjbJarProxy ejbJarProxy, Reader reader) {
9595 // so lets not set the original to null here but wait
9696 // until the file becomes parsable again to do a merge
9797 //ejbJarProxy.setOriginal(null);
98- } catch (Schema2BeansRuntimeException s2bre ){ // see #70286
98+ } catch (Schema2BeansRuntimeException s2bre ){ // see #70286
9999 ejbJarProxy .setStatus (EjbJar .STATE_INVALID_UNPARSABLE );
100100 ejbJarProxy .setError (new SAXParseException (null , null , s2bre ));
101- } catch (RuntimeException re ){ // see #99047
101+ } catch (RuntimeException re ){ // see #99047
102102 if (re .getCause () instanceof Schema2BeansException ){
103103 ejbJarProxy .setStatus (EjbJar .STATE_INVALID_UNPARSABLE );
104104 ejbJarProxy .setError (new SAXParseException (null , null , (Schema2BeansException ) re .getCause ()));
@@ -121,6 +121,8 @@ public static WebApp createWebApp(InputStream is, String version) throws IOExcep
121121 return org .netbeans .modules .j2ee .dd .impl .web .model_3_0 .WebApp .createGraph (is );
122122 } else if (WebApp .VERSION_3_1 .equals (version )) {
123123 return org .netbeans .modules .j2ee .dd .impl .web .model_3_1 .WebApp .createGraph (is );
124+ } else if (WebApp .VERSION_4_0 .equals (version )) {
125+ return org .netbeans .modules .j2ee .dd .impl .web .model_4_0 .WebApp .createGraph (is );
124126 } else {
125127 return null ;
126128 }
@@ -137,7 +139,7 @@ public static WebApp createWebApp(FileObject fo, String version) throws IOExcept
137139 inputStream .close ();
138140 }
139141 }
140-
142+
141143 public static AppClient createAppClient (InputStream is , String version ) throws IOException , SAXException {
142144 try {
143145 if (AppClient .VERSION_1_4 .equals (version )) {
0 commit comments