In the legal system of traditional china , society governance are based on gentries class , and which forms a gentry power governance guided by centralization and maintained ex-tremely consistence with the mainstream confucian ideology and bureaucracy .