public DesignServiceManager() throws JAXBException, IOException { this.serviceDefinitions = new HashMap<Project, Map<String, Service>>(); Unmarshaller unmarshaller = definitionsContext.createUnmarshaller(); ClassPathResource primitiveServiceFile = new ClassPathResource("com/wavemaker/tools/service/primitive_types.xml"); InputStream inputStream = primitiveServiceFile.getInputStream(); try { Service primitiveService = (Service) unmarshaller.unmarshal(inputStream); this.primitiveTypes = Collections.unmodifiableList(primitiveService.getDataobjects().getDataobject()); Map<String, String> m = new TreeMap<String, String>(); for (DataObject o : this.primitiveTypes) { if (!o.isInternal()) { m.put(o.getName(), o.getJavaType()); } } this.primitivesMap = Collections.unmodifiableMap(m); } finally { inputStream.close(); } }