public void init() { if (id != 0) { Document d = documentService.getById(id); title = d.getTitle(); documentType = d.getDocType().getId() + ""; } }