metadataService.setUpAttributes( resource,
metadata ),
makeCommentedOption( comment ) );
//Invalidate Package-level DMO cache as Globals have changed.
invalidatePackageDMOEvent.fire( new InvalidateDMOPackageCacheEvent( resource ) );
//Signal update to interested parties
resourceUpdatedEvent.fire( new ResourceUpdatedEvent( resource ) );
return resource;