@Override
public void onResourceRequested()
{
RequestCycle requestCycle = RequestCycle.get();
ServletWebRequest request = (ServletWebRequest)requestCycle.getRequest();
// Grab a Meteor
Meteor meteor = Meteor.build(request.getContainerRequest());
String uuid = getUUID(meteor.getAtmosphereResource());
component.getPage().setMetaData(ATMOSPHERE_UUID, uuid);
EventBus.get().registerPage(uuid, component.getPage());
// Add us to the listener list.
meteor.addListener(this);
String transport = request.getHeader(HeaderConfig.X_ATMOSPHERE_TRANSPORT);
if (HeaderConfig.LONG_POLLING_TRANSPORT.equalsIgnoreCase(transport))
{
// request.getContainerRequest().setAttribute(ApplicationConfig.RESUME_ON_BROADCAST,
// Boolean.TRUE);
meteor.suspend(-1, false);