private Condition createCondition(final FindAccountRequest request) {
        Condition condition = ACCOUNT.PROCESSING_ACCOUNT.isFalse();
//        if (request.getQuickFilter() != null) {
//            condition = condition.and(ACCOUNT.USER_ID.contains(request.getQuickFilter()));
//        }
        return condition;
    }
Create a derived field that represents the account state.
stroom-security/stroom-security-identity-db/src/main/java/stroom/security/identity/db/AccountDaoImpl.java