code: @Override
  	public void updateStyle(NamedStyleInfo nsi) {
  		getLayerInfo().setNamedStyleInfo(nsi);
  		GwtCommand commandRequest = new GwtCommand(RegisterNamedStyleInfoRequest.COMMAND);
  		RegisterNamedStyleInfoRequest request = new RegisterNamedStyleInfoRequest();
  		request.setLayerId(getServerLayerId());
  		request.setNamedStyleInfo(getLayerInfo().getNamedStyleInfo());
  		commandRequest.setCommandRequest(request);
  		GwtCommandDispatcher.getInstance().execute(commandRequest,
  				new AbstractCommandCallback<RegisterNamedStyleInfoResponse>() {
  
  					@Override
  					public void execute(RegisterNamedStyleInfoResponse response) {
  						getLayerInfo().getNamedStyleInfo().setName(response.getStyleName());
  						eventBus.fireEvent(new LayerStyleChangedEvent(VectorServerLayerImpl.this));
  					}
  				});
  	}
docs: ------------------------------------------------------------------------