vector = new Vector<LabelValueBean>();
query = em.createQuery("from SiteProfileClass siteProfileClass where siteProfileClass.site.siteId = :siteId order by siteProfileClassName");
query.setParameter("siteId", form.getSiteId());
iterator = query.getResultList().iterator();
while (iterator.hasNext()) {
SiteProfileClass siteProfileClass = (SiteProfileClass) iterator.next();
LabelValueBean bean = new LabelValueBean(siteProfileClass.getSiteProfileClassName(), Format.getLong(siteProfileClass.getSiteProfileClassId()));
vector.add(bean);
}
LabelValueBean siteProfileClasses[] = new LabelValueBean[vector.size()];
vector.copyInto(siteProfileClasses);
form.setSiteProfileClasses(siteProfileClasses);