*/
public void convert(Integer id, boolean accountCheck, boolean contactCheck,
boolean opportunityCheck) throws Exception {
Lead lead = this.getEntityById(Lead.class, id);
if (accountCheck) {
Account account = new Account();
String firstName = CommonUtil.fromNullToEmpty(lead.getFirst_name());
String lastName = CommonUtil.fromNullToEmpty(lead.getLast_name());
account.setName(firstName + " " + lastName);
account.setOffice_phone(lead.getOffice_phone());
account.setFax(lead.getFax());
account.setBill_street(lead.getPrimary_street());
account.setBill_city(lead.getPrimary_city());
account.setBill_country(lead.getPrimary_country());
account.setBill_postal_code(lead.getPrimary_postal_code());
account.setBill_state(lead.getPrimary_state());
account.setShip_street(lead.getOther_street());
account.setShip_city(lead.getOther_city());
account.setShip_country(lead.getOther_country());
account.setShip_postal_code(lead.getOther_postal_code());
account.setShip_state(lead.getOther_state());
account.setEmail(lead.getEmail());
account.setNotes(lead.getNotes());
account.setAssigned_to(lead.getAssigned_to());
account.setOwner(lead.getOwner());
this.getAccountService().makePersistent(account);
}
if (contactCheck) {
Contact contact = new Contact();
contact.setSalutation(lead.getSalutation());