if (outerIter.hasNext()) { Map<String, Map<EJBMethodLocator, InterceptorList>> targetMap = new HashMap<>(map.size()); targetMap.put(first.getKey(), calculateMethodInterceptors(first.getValue())); do { final Map.Entry<String, HashMap<EJBMethodLocator, ArrayList<EJBClientInterceptorInformation>>> next = outerIter.next(); targetMap.put(next.getKey(), calculateMethodInterceptors(next.getValue())); } while (outerIter.hasNext()); this.configuredPerMethodInterceptors = targetMap; } else { this.configuredPerMethodInterceptors = Collections.singletonMap(first.getKey(), calculateMethodInterceptors(first.getValue()));
if (outerIter.hasNext()) { Map<String, Map<EJBMethodLocator, InterceptorList>> targetMap = new HashMap<>(map.size()); targetMap.put(first.getKey(), calculateMethodInterceptors(first.getValue())); do { final Map.Entry<String, HashMap<EJBMethodLocator, ArrayList<EJBClientInterceptorInformation>>> next = outerIter.next(); targetMap.put(next.getKey(), calculateMethodInterceptors(next.getValue())); } while (outerIter.hasNext()); this.configuredPerMethodInterceptors = targetMap; } else { this.configuredPerMethodInterceptors = Collections.singletonMap(first.getKey(), calculateMethodInterceptors(first.getValue()));
if (outerIter.hasNext()) { Map<String, Map<EJBMethodLocator, InterceptorList>> targetMap = new HashMap<>(map.size()); targetMap.put(first.getKey(), calculateMethodInterceptors(first.getValue())); do { final Map.Entry<String, HashMap<EJBMethodLocator, ArrayList<EJBClientInterceptorInformation>>> next = outerIter.next(); targetMap.put(next.getKey(), calculateMethodInterceptors(next.getValue())); } while (outerIter.hasNext()); this.configuredPerMethodInterceptors = targetMap; } else { this.configuredPerMethodInterceptors = Collections.singletonMap(first.getKey(), calculateMethodInterceptors(first.getValue()));