em.persist(opens);
}
public void recordClick(Long emailId, String customerId, String destinationUri, String queryString) {
EmailTrackingClicks clicks = (EmailTrackingClicks) entityConfiguration.createEntityInstance("org.broadleafcommerce.common.email.domain.EmailTrackingClicks");
clicks.setEmailTracking(retrieveTracking(emailId));
clicks.setDateClicked(SystemTime.asDate());
clicks.setDestinationUri(destinationUri);
clicks.setQueryString(queryString);
clicks.setCustomerId(customerId);
em.persist(clicks);
}