Integer layer;
int layer;
  protected void addImpl(Component comp, Object layerConstraint, int index)   {        	    Integer layer;    if (layerConstraint != null && layerConstraint instanceof Integer)      layer = (Integer) layerConstraint;    else if (componentToLayer.containsKey (comp))	    layer = (Integer) componentToLayer.remove (comp);    else	    layer = DEFAULT_LAYER;    int newIdx = insertIndexForLayer(layer.intValue (), index);    componentToLayer.put (comp, layer);    incrLayer (layer);	    super.addImpl(comp, null, newIdx);	  }     