public Object eventOccurred(final Event event) {
final int eventId = event.getUID();
switch (eventId) {
case Event.EVENT_URL_REQUESTED: {
final UrlRequestedEvent urlRequestedEvent =
(UrlRequestedEvent) event;
final PrimaryResourceFetchThread thread =
new PrimaryResourceFetchThread(urlRequestedEvent.getURL(),
urlRequestedEvent.getHeaders(), urlRequestedEvent
.getPostData(), event, this);
thread.start();
break;