public static AccountCredentials getAccountCredentials() {

        String email = resourceBundle.getString("credential.email");
        String token = resourceBundle.getString("credential.token");

        email = email == null ? null : email.trim();
        token = token == null ? null : token.trim();

        // it is validated at this point to put a error message in the exception
        if (email == null || email.equals("") || token == null || token.equals("")) {
            throw new RuntimeException("To use credentials from config.properties file you must "
                    + "configure the properties credential.email and credential.token. Currently "
                    + "credential.email=[" + email + "] and credential.token=[" + token + "].");
        }

        return new AccountCredentials(email, token);

    }