IScope thisScope = getScope();
IContext context = thisScope.getContext();
IProviderService providerService = (IProviderService) context
.getBean(IProviderService.BEAN_NAME);
// Get live input
IMessageInput liveInput = providerService.getLiveProviderInput(
thisScope, item.getName(), false);
// Get VOD input
IMessageInput vodInput = providerService.getVODProviderInput(
thisScope, item.getName());
boolean isPublishedStream = liveInput != null;
boolean isFileStream = vodInput != null;
boolean sendNotifications = true;