public PrinterVo getPrinter(IPrinter printer) { if (printer == null) throw new CodingRuntimeException("printer cannot be null in method getPrinter"); DomainFactory factory = getDomainFactory(); return PrinterVoAssembler.create((Printer) factory.getDomainObject(Printer.class, printer.getIPrinterId())); }