added enums to java model inferrer
rest support for no params