taverna-scufl2-scufl/src/main/java/org/apache/taverna/scufl2/translator/scufl/ScuflParser.java [116:139]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
		unmarshaller = new ThreadLocalUnmarshaller(jaxbContext);
	}

	/**
	 * A static class for the thread-local unmarshaller.
	 */
	private static class ThreadLocalUnmarshaller extends
			ThreadLocal<Unmarshaller> {
		private final JAXBContext jaxbContext;

		ThreadLocalUnmarshaller(JAXBContext jaxbContext) {
			this.jaxbContext = jaxbContext;
		}

		@Override
		protected Unmarshaller initialValue() {
			try {
				return jaxbContext.createUnmarshaller();
			} catch (JAXBException e) {
				logger.log(SEVERE, "Could not create unmarshaller", e);
				return null;
			}
		};
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



taverna-scufl2-t2flow/src/main/java/org/apache/taverna/scufl2/translator/t2flow/T2FlowParser.java [209:232]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
		unmarshaller = new ThreadLocalUnmarshaller(jaxbContext);
	}

	/**
	 * A static class for the thread-local unmarshaller.
	 */
	private static class ThreadLocalUnmarshaller extends
			ThreadLocal<Unmarshaller> {
		private final JAXBContext jaxbContext;

		ThreadLocalUnmarshaller(JAXBContext jaxbContext) {
			this.jaxbContext = jaxbContext;
		}

		@Override
		protected Unmarshaller initialValue() {
			try {
				return jaxbContext.createUnmarshaller();
			} catch (JAXBException e) {
				logger.log(SEVERE, "Could not create unmarshaller", e);
				return null;
			}
		};
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



