private Account createAccount(CreateAccountForm createAccountForm, String profileId) { Account account = new Account(); account.setProfileId(profileId); account.setType(createAccountForm.getAccountType()); account.setCreatedBy( createAccountForm.getStaffFirstName() + " " + createAccountForm.getStaffLastName()); account.setCreatedDate(new Date()); account.setTenantId(createAccountForm.getTenantId()); return account; }