Java to cfg