Some of this code is going to be moved to SDK library, so it's important. Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Pavel Korotkov <pavel@nspcc.ru>