.getElementAt(tableOrders
.convertRowIndexToModel(orderSelectionList
.getSelectionIndex()));
OrderManager orderManager = (OrderManager) ModelUtil
.getBean("orderManager");
Order order = orderManager.findByOrderNr(mainPackageV.getOrderNr());
if (order != null) {
DeviationViewHandler deviationViewHandler = deviationViewHandlerFactory
.create(order, true, false, true, null, true);
deviationViewHandler.registerDeviation(order, window);
}