/**
  * Checks if the current logged in account does not exceed the maximum amount of detentions a FREE
  * account should have
  *
  * @return true or false
  */
 public boolean doesFreeAccountNotHaveMaxDetentions() {
   loadLogin();
   if (currentLogin.getAccountType() == AccountType.Free
       && currentLogin.getDetentions().size() < MAX_DETENTIONS_FOR_FREE) {
     return true;
   }
   return currentLogin.getAccountType() != AccountType.Free;
 }
 /**
  * Checks if the current logged in account is a Premium account
  *
  * @return true or false
  */
 public boolean isPremiumAccount() {
   loadLogin();
   return currentLogin.getAccountType() == AccountType.Premium;
 }
 /**
  * Checks if the current logged in account is a Premium account with a valid customer token
  *
  * @return true or false
  */
 public boolean isPremiumAccountWithToken() {
   loadLogin();
   return currentLogin.getAccountType() == AccountType.Premium && currentLogin.getToken() != null;
 }
 /**
  * Checks if the current logged in account has a token and is not a FREE account
  *
  * @return true or false
  */
 public boolean doesHaveTokenAndValidAccount() {
   loadLogin();
   return !(currentLogin.getToken() == null
       && !"Free".equals(currentLogin.getAccountType().toString()));
 }
 /**
  * Returns the account type of the current logged in user
  *
  * @return Account type
  */
 public String returnCurrentAccount() {
   loadLogin();
   return currentLogin.getAccountType().toString();
 }