implementing the isXXX() method and the getDocument() method for the representation with Xstream