* the SCMP command exception
*/
protected PublishService validatePublishService(Service service) throws SCMPCommandException {
if (service.getType() != ServiceType.PUBLISH_SERVICE && service.getType() != ServiceType.CACHE_GUARDIAN) {
// service is not publish service
SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.V_WRONG_SERVICE_TYPE, service.getName()
+ " is not publish service");
scmpCommandException.setMessageType(getKey());
throw scmpCommandException;
}
return (PublishService) service;
}