Utility for java bean and xml conversion