added iterator to javabite code gen