C# code -> Java code