* @throws RemoteException DOCUMENT_ME
*/
public RenewResponseDocument renew( RenewDocument body )
throws RemoteException
{
Subscription subscription = (Subscription) getResource( );
//TODO why no ExpirationType
org.apache.xmlbeans.XmlCalendar et = (org.apache.xmlbeans.XmlCalendar) body.getRenew( ).getExpires( );
subscription.setTerminationTime( et );
RenewResponseDocument responseDom = RenewResponseDocument.Factory.newInstance( );
RenewResponseDocument.RenewResponse response = responseDom.addNewRenewResponse( );
//TODO response with new expirationType
response.setExpires( subscription.getTerminationTime( ) );
return ( responseDom );
}