/** * 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; }