@Override public void load(DataResource aData) throws ResourceInitializationException { try { corpusDAO = new XmiFileTreeCorpusDAO(aData.getUri().toString()); } catch (URISyntaxException e) { e.printStackTrace(); throw new ResourceInitializationException(); } }
@Override public void load(DataResource aData) throws ResourceInitializationException { InputStream inputStream = null; try { inputStream = aData.getInputStream(); loadResource(inputStream); } catch (IOException e) { LOGGER.error("Could not load the groovy variant rules resource"); throw new ResourceInitializationException(e); } finally { if (inputStream != null) try { inputStream.close(); } catch (IOException e) { throw new ResourceInitializationException(e); } } }