// MarketBean
@Override
public MarketBean getOrCreateMarketBean(final String market) {
final Query query = getSession().getNamedQuery("MarketBean.one");
query.setString("name", market);
MarketBean bean = (MarketBean) query.uniqueResult();
if (bean == null) {
bean = persistBean(new MarketBean(market));
}
return bean;
}