egor java code