Before porting to .java
Ported the shit to Java.