convert bean xml to java