change callback interface to standart java class