String feedName = (String) resource.getPropertyValue(FEED_NAME_PROPERTY_ID);
if (desiredStatus.equals("SCHEDULED")) {
service.scheduleFeed(feedName);
} else if (desiredStatus.equals("SUSPENDED")) {
service.suspendFeed(feedName);
} else if (status.equals("SUSPENDED") && desiredStatus.equals("RUNNING")) {
service.resumeFeed(feedName);
}
}
service.updateFeed(getFeed((String) resource.getPropertyValue(FEED_NAME_PROPERTY_ID),