modify the inner classes in bean