/** * Attempts to update the specified user entry in the associated FreeAgent account. * * @param user The populated user instance. * @return True if the user has been updated successfully, otherwise false. */ public boolean updateUser(FreeAgentUser user) { if (user != null) { String userId = extractIdentifier(user.getUrl()); if (userId != null && !userId.isEmpty()) { Response response = freeAgentServiceInstance.updateUser(new FreeAgentUserWrapper(user), userId); if (response.getStatus() == 200) { return true; } else { return false; } } } return false; }