protected void setComponent(DefaultHost host, Component comp) {
   // TODO setComponent method in the host?
   if (comp instanceof NetLayer) {
     host.setNetwork((NetLayer) comp);
   } else if (comp instanceof TransLayer) {
     host.setTransport((TransLayer) comp);
   } else if (comp instanceof OverlayNode) {
     host.setOverlayNode((OverlayNode) comp);
   } else if (comp instanceof Application) {
     host.setApplication((Application) comp);
   } else if (comp instanceof ContentStorage) {
     host.setContentStorage((DefaultContentStorage) comp);
   }
 }