Arrays.sort(explodedView, nameCompare);
ArrayList<MergeHandler> finalHandlers = new ArrayList<MergeHandler>();
for (MergeHandler temp : explodedView) {
if (temp.getName().contains(".")) {
final String parentName = temp.getName().substring(0, temp.getName().lastIndexOf("."));
int pos = Arrays.binarySearch(explodedView, new MergeHandlerAdapter() {
@Override
public String getName() {
return parentName;
}
}, nameCompare);