@Override
public VelocityContext createContext(final String languageCode,
PageEntity page) {
LanguageEntity language = getDao().getLanguageDao().getByCode(
languageCode);
VelocityContext context = new VelocityContext();
ConfigEntity configEntity = getBusiness().getConfigBusiness().getConfig();
addVelocityTools(context);
context.put("language", language);
context.put("locale", new Locale(language.getCode()));
context.put("config", configEntity);
context.put("service", getVelocityService());
context.put("plugin", getVelocityPluginService().getPlugins());
context.put("messages", getBusiness().getMessageBusiness().getBundle(
languageCode));
context.put("user", getBusiness().getUser());
context.put("request", VosaoContext.getInstance().getRequest());
context.put("response", VosaoContext.getInstance().getResponse());
context.put("timezone", getBusiness().getTimeZone());
VosaoTool vosaoTool = new VosaoTool();
vosaoTool.setPage(page);
context.put("vosao", vosaoTool);
return context;
}