}
private Long getUniqueStorageTimeout(Object command) {
Command commandAnnotation = command.getClass().getAnnotation(
Command.class);
return commandAnnotation.uniqueStorageTimeout();
}
private Date getFromHistory(Object command) {
Map<Object, Date> executions = history.get(command.getClass());
if (executions == null)