class CheckValidityAsyncOperationActor {

    public void check(final CheckValidityMessage message) throws InvalidAsyncOperationIdException {
        try {
            List<String> validIds = message.getIdentifiers();
            if (validIds == null || validIds.isEmpty()) {
                throw new InvalidAsyncOperationIdException("List of valid id is empty");
            }
            if (!validIds.contains(message.getAsyncOperationId())) {
                throw new InvalidAsyncOperationIdException("List of async operations does not contain operation with received token");
            }
        } catch (ReadValueException e) {
            throw new InvalidAsyncOperationIdException(e);
        }

    }

    public  CheckValidityAsyncOperationActor(final IObject config);

}