diff --git a/build.xml b/build.xml index e7e5e5e2e1..e65567b61f 100644 --- a/build.xml +++ b/build.xml @@ -871,10 +871,22 @@ under the License. - + + typeLoader; + + private static synchronized org.apache.xmlbeans.SchemaTypeLoader getTypeLoader() { + org.apache.xmlbeans.SchemaTypeLoader stl = (typeLoader == null) ? null : typeLoader.get(); + if (stl == null) { + stl = org.apache.xmlbeans.XmlBeans.typeLoaderForClassLoader(\2.class.getClassLoader()); + typeLoader = new java.lang.ref.SoftReference(stl); + } + return stl; + } + + public static \2 newInstance\(\) \{]]> + +