class RegisterNamedStyleInfoCommand implements
		CommandHasRequest<RegisterNamedStyleInfoRequest, RegisterNamedStyleInfoResponse> {

	@Override
	public void execute(RegisterNamedStyleInfoRequest request, RegisterNamedStyleInfoResponse response)
			throws Exception {
		response.setStyleName(styleService.registerStyle(request.getLayerId(), request.getNamedStyleInfo()));
	}

}