this.created = factory.newXMLGregorianCalendar(created).normalize();
this.expires = factory.newXMLGregorianCalendar(expires).normalize();
// set the delegate fields.
this.delegate = new LifetimeType();
AttributedDateTime dateTime = new AttributedDateTime();
dateTime.setValue(this.created.toXMLFormat());
this.delegate.setCreated(dateTime);
dateTime = new AttributedDateTime();
dateTime.setValue(this.expires.toXMLFormat());
this.delegate.setExpires(dateTime);
}