@Override public Matches getListOfMatches(CTOContest contest) throws RegisterException { Matches result = new Matches(); try { IContestController contestController = LogicFacade.getContestController( user, (ITransferContest) SVMCorbaServer.getInstance().getCTO(contest).getTransferObject()); contestController.start(); List<ITransferMatch> matches = contestController.getMatches(); result.matches = new CTOMatch[matches.size()]; for (int i = 0; i < matches.size(); i++) { result.matches[i] = SVMCorbaServer.getInstance().addCTOMatch(new CTOMatchImpl(matches.get(i))); } contestController.commit(); } catch (IllegalAccessException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (InstantiationException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (RemoteException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (NoSessionFoundException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (IllegalGetInstanceException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (NotSupportedException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (NoTransactionException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (ExistingTransactionException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } return result; }