* @param executor Executor used to execute this request.
* @return
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public Builder withCommandData(Executor executor) {
HystrixCommand command = (HystrixCommand) executor;
withEventList(command.getExecutionEvents())
.withExecutionTime(command.getExecutionTimeInMilliseconds())
.withException((Exception) command.getFailedExecutionException());
return this;
}