private boolean isUserServiceType(String uriPart) { for (ProgramType type : ServiceDiscoverable.getUserServiceTypes()) { if (type.getCategoryName().equals(uriPart)) { return true; } } return false; }
if (!ServiceDiscoverable.getUserServiceTypes().contains(programType)) { throw new BadRequestException("Only service or spark is support for service availability check");
if (!ServiceDiscoverable.getUserServiceTypes().contains(programType)) { throw new BadRequestException("Only service or spark is support for service availability check");