private Sender senderFromMsisdn(HttpServletRequest req, String sendingMsisdnSelection, Group group) {
if (sendingMsisdnSelection == null || sendingMsisdnSelection.startsWith("(")){
throw new InputException(getResources(req).getMessage(locale,"smssvc.noSenderNumberSelected"));
}
long sendingMsisdn = Long.parseLong(sendingMsisdnSelection);
SmsSenderManager smsSenderManager = new SmsSenderManager(locale,session);
Sender sender = smsSenderManager.getSmsSenderByMsisdn(sendingMsisdn);
if (!smsSenderManager.isValidForGroup(sender,group)){
throw new InputException(getResources(req).getMessage(locale,"smssvc.invalidSender"));
}
return sender;
}