if (isDirty()){
MessageBox.showWarning(MessageBox.W_NOT_CLOSE_EDITING);
return;
}
try {
LaboratoryDetails det = new LaboratoryDetails();
det.title = "новая лаборатория";
det.lpuId = UserInfo.get().getCollaborator().getLpu().getID();
DirectoryLaboratory dir = DirectoryLocator.getDirectory(DirectoryLaboratory.class);
DirectoryLaboratoryItem item = new DirectoryLaboratoryItem(det);
dir.getItems().append(item);