/** * Attempts to update the specified contact entry in the associated FreeAgent account. * * @param contact The populated contact instance. * @return True if the contact has been updated successfully, otherwise false. */ public boolean updateContact(FreeAgentContact contact) { if (contact != null) { String contactId = extractIdentifier(contact.getUrl()); if (contactId != null && !contactId.isEmpty()) { Response response = freeAgentServiceInstance.updateContact(new FreeAgentContactWrapper(contact), contactId); if (response.getStatus() == 200) { contact.setUpdatedAt(dateFormat.format(new Date())); return true; } else { return false; } } } return false; }