@SuppressWarnings("restriction")
public class ContactsTreeView {
@Inject
public ContactsTreeView(BorderPane parent, final MApplication application, final ContactsManager contactsManager) {
EditingDomain editingDomain = contactsManager.getEditingDomain();
// TreeView
TreeView<Object> treeView = new TreeView<>();
treeView.setRoot(new AdapterFactoryTreeItem(contactsManager.getRootGroup(), treeView, contactsManager.getAdapterFactory()));
AdapterFactoryTreeCellFactory treeCellFactory = new AdapterFactoryTreeCellFactory(contactsManager.getAdapterFactory());