Move from .Net to Java