public Node adoptNode(Node arg0) throws DOMException {
	// dynamic load to support jre 1.4 and 1.5
	try {
	    Method m = doc.getClass().getMethod("adoptNode", new Class[] { arg0.getClass() });
	    return Caster.toNode(m.invoke(doc, new Object[] { arg0 }));
	}
	catch (Exception e) {
	    throw new PageRuntimeException(Caster.toPageException(e));
	}
    }
public Node adoptNode ( Node arg0 ) throws DOMException { try { Method m = doc . getClass ( ) . getMethod ( "adoptNode" , new Class [ ] { arg0 . getClass ( ) } ) ; return Caster . toNode ( m . invoke ( doc , new Object [ ] { arg0 } ) ) ; } catch ( Exception e ) { throw new PageRuntimeException ( Caster . toPageException ( e ) ) ; } }
used only with java 7, do not set @Override