How to migrate COBOL to Java safely