ConfigurableWrapper (Configurable configurable) { if (myComparator != null) { int index = Arrays.binarySearch(myKids, configurable, myComparator); LOG.assertTrue(index < 0, "similar configurable is already exist"); myKids = ArrayUtil.insert(myKids, -1 - index, configurable); } else { myKids = ArrayUtil.append(myKids, configurable); } return this; }