private void initialize() {
   boolean shouldAdd = true;
   invisibleRoot = new TreeParent("", TreeObject.Type.NONE); // $NON-NLS-1$
   List<GuvnorRepository> reps = Activator.getLocationManager().getRepositories();
   for (int i = 0; i < reps.size(); i++) {
     if (repUrl != null) {
       if (repUrl.equals(reps.get(i).getLocation())) {
         shouldAdd = true;
       } else {
         shouldAdd = false;
       }
     } else {
       shouldAdd = true;
     }
     if (shouldAdd) {
       TreeParent p = new TreeParent(reps.get(i).getLocation(), TreeObject.Type.REPOSITORY);
       p.setGuvnorRepository(reps.get(i));
       ResourceProperties props = new ResourceProperties();
       props.setBase(""); // $NON-NLS-1$
       p.setResourceProps(props);
       invisibleRoot.addChild(p);
     }
   }
 }