Added static constants support to java generator