* @see org.ajax4jsf.resource.InternetResourceBase#getDataToStore(javax.faces.context.FacesContext, java.lang.Object)
*/
public Object getDataToStore(FacesContext context, Object data) {
UriData dataToStore = null;
if (data instanceof ResourceComponent) {
ResourceComponent resource = (ResourceComponent) data;
dataToStore = new UriData();
dataToStore.value = resource.getValue();
dataToStore.createContent = UIComponentBase.saveAttachedState(context,resource.getCreateContent());
if (data instanceof UIComponent) {
UIComponent component = (UIComponent) data;
ValueBinding expires = component.getValueBinding("expires");
if (null != expires) {
dataToStore.expires = UIComponentBase.saveAttachedState(context,expires);