public class ContactUsDAO extends ContactUs {
private static final long serialVersionUID = 6083814592911674331L;
public static ContactUs load(String siteId, Long contactUsId) throws SecurityException, Exception {
EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
ContactUs contactUs = (ContactUs) em.find(ContactUs.class, contactUsId);
if (!contactUs.getSiteId().equals(siteId)) {
throw new SecurityException("");
}
return contactUs;
}