* @throws SCMPCommandException
* the SCMP command exception
*/
protected SrvService getSrvServiceByServiceName(String serviceName) throws SCMPCommandException {
SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
int listenerPort = responder.getListenerConfig().getPort();
SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
if (srvService == null) {
LOGGER.warn("service=" + serviceName + " port=" + listenerPort + " not found in registry");
SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_NOT_FOUND, serviceName);
scmpCommandException.setMessageType(this.getKey());