public OcsOrderWebServiceVo getOrderById(Integer orderId) { DomainFactory factory = getDomainFactory(); OcsOrderSession doOrder = (OcsOrderSession)factory.getDomainObject(OcsOrderSession.class, orderId); if(doOrder == null) throw new DomainRuntimeException("Order not found"); return OcsOrderWebServiceVoAssembler.create(doOrder); }