* @return an initialized BackingBean or null in case of error
*/
public CustomAlertSenderBackingBean getBackingBeanForSender(String shortName, Integer alertNotificationId) {
AlertSenderPluginManager pluginmanager = alertManager.getAlertPluginManager();
CustomAlertSenderBackingBean bean = pluginmanager.getBackingBeanForSender(shortName);
if (alertNotificationId != null) {
AlertNotification notification = entityManager.find(AlertNotification.class, alertNotificationId);
if (notification != null && bean != null) {
bean.setAlertParameters(notification.getConfiguration().deepCopy(true));
if (notification.getExtraConfiguration() != null) {
bean.setExtraParameters(notification.getExtraConfiguration().deepCopy(true));
}
}
}
return bean;
}