baseDataValidator.reset().parameter(CacheApiConstants.cacheTypeParameter).value(Integer.valueOf(cacheTypeEnum)).notNull()
.isOneOfTheseValues(Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3));
if (!dataValidationErrors.isEmpty()) { throw new PlatformApiDataValidationException(dataValidationErrors); }
final CacheType cacheType = CacheType.fromInt(cacheTypeEnum);
final Map<String, Object> changes = this.cacheService.switchToCache(cacheType);
return new CommandProcessingResultBuilder().withCommandId(command.commandId()).with(changes).build();
}