- Long serviceRate = serviceEnd.getServiceRate();
- ServiceFormat serviceformat = serviceEnd.getServiceFormat();
- String clli = serviceEnd.getClli();
- if (serviceRate != null && serviceRate <= 0) {
- result = false;
- message = "Service " + service + " rate is not set";
- LOG.debug(message);
- } else if (serviceformat == null) {
- result = false;
- message = "Service " + service + " format is not set";
- LOG.debug(message);
- } else if (!checkString(clli)) {
- result = false;
- message = "Service" + service + " clli format is not set";
- LOG.debug(message);
- } else {
- if (!checkTxOrRxInfo(serviceEnd.getTxDirection(), serviceEnd.getRxDirection())) {
+ try {
+ Long serviceRate = serviceEnd.getServiceRate();
+ ServiceFormat serviceformat = serviceEnd.getServiceFormat();
+ String clli = serviceEnd.getClli();
+ if ((serviceRate == null) || (serviceRate <= 0)) {
+ result = false;
+ message = "Service " + endpointType + " rate is not set";
+ LOG.debug(message);
+ } else if (serviceformat == null) {