em.persist(customAttributeLanguage);
em.persist(customAttribute);
String prefix = getNextPrefix();
SiteDomain siteDomain = new SiteDomain();
SiteDomainLanguage siteDomainLanguage = new SiteDomainLanguage();
siteDomainLanguage.setSiteName("localhost");
siteDomainLanguage.setRecUpdateBy(userId);
siteDomainLanguage.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
siteDomainLanguage.setRecCreateBy(userId);
siteDomainLanguage.setRecCreateDatetime(new Date(System.currentTimeMillis()));
SiteDomainParamBean siteDomainParamBean = new SiteDomainParamBean();
siteDomainLanguage.setSiteDomainParam(Utility.joxMarshall("SiteDomainParamBean", siteDomainParamBean));
siteDomainLanguage.setSiteProfileClass(siteProfileClass);
em.persist(siteDomainLanguage);
siteDomain.getSiteDomainLanguages().add(siteDomainLanguage);
siteDomain.setSiteDomainLanguage(siteDomainLanguage);
siteProfileClass.setSiteDomain(siteDomain);