class OrdersImporter {
void importOrders(DataSource dataSource, InputSource inputSource)
throws SQLException, ParserConfigurationException, SAXException, IOException, InterruptedException, VerticesProcessingException {
Connection connection;
SingletonDataSource updateDataSource;
ExecutorServiceFactory factory;
GraphReducer reducer;
GraphBuilder builder;
OrdersParser parser;
Vertex<Object> root;
connection = null;
try {
connection = dataSource.getConnection();
connection.setAutoCommit(false);
updateDataSource = new SingletonDataSource(connection);
factory = new FixedThreadPoolFactory(3);
reducer = new GraphReducerImpl(factory);