asfb.setHibernateProperties(getHibernateProperties());
String prefixTable = environment.getProperty("joomladb.prefixtable");
if (StringUtils.isEmpty(prefixTable)) {
throw new IllegalStateException("Please provide joomladb.prefixtable");
}
asfb.setNamingStrategy(new CustomNamingStrategy(prefixTable));
List<Class> classes = new ArrayList<Class>();
classes.add(com.castronu.joomlajavaapi.domain.Category.class);
classes.add(Content.class);
classes.add(Menu.class);
asfb.setAnnotatedClasses((classes.toArray(new Class[classes.size()])));