Layer<?> layer3 = layersModel.getLayer(LAYER3);
fromIndex = 342;
toIndex = 342;
HandlerRegistration reg = eventBus.addHandler(LayerOrderChangedHandler.TYPE, new LayerOrderChangedHandler() {
public void onLayerOrderChanged(LayerOrderChangedEvent event) {
fromIndex = event.getFromIndex();
toIndex = event.getToIndex();
}