this is my xml file.
my function in controller is:
@Install(to = "entityDataGrid.vacancy", subject = "newEntitySupplier")
private Vacancy entityDataGridVacancyNewEntitySupplier() {
Vacancy request = entityDataGrid.getSingleSelectedItem();
if (request == null) return null;
Vacancy vacancy = metadataTools.copy(request);
vacancy.setId(UuidProvider.createUuid());
vacancy.setState(VacancyState.VACANCY);
return vacancy;
}