URL url = bpFile.toURL();
URLConnection conn = url.openConnection();
is = conn.getInputStream();
try {
ParsedServiceElements pse = getParserProxy().parseAllServiceElements(is);
services.addAll(pse.getServices());
references.addAll(pse.getReferences());
} finally {
if (is != null) {
is.close();
}
}
}
} catch (URISyntaxException e) {
ModellerException m = new ModellerException(e);
_logger.debug(LOG_EXIT, "getServiceElements", m);
throw m;
} catch (IOException e) {
ModellerException m = new ModellerException(e);
_logger.debug(LOG_EXIT, "getServiceElements", m);
throw m;
} catch (Exception e) {
ModellerException m = new ModellerException(e);
_logger.debug(LOG_EXIT, "getServiceElements", m);
throw m;
}
ParsedServiceElements result = _modellingManager.getParsedServiceElements(services, references);
_logger.debug(LOG_EXIT, "getServiceElements", result);
return result;
}