code: private static void ensureNumber(Object value) throws ExecutionException {
  
          if (!isNumber(value)) {
              String message = value.getClass().getCanonicalName() + " can not cast to a Number.";
              LOGGER.error(message);
              throw new ExecutionException(message);
          }
      }
docs: Ensure if a object is a number.
  
  @param value the objet.
  @throws ExecutionException if is not a number.