Java NSC Generator works