changing serialized xml to Java beans format