throw Lang.wrapThrow(e);
}
}
if ("ftl".equals(type))
return new ForwardView(value) {
protected String getExt() {
return "ftl";
}
};
if ("hibernateJson".equals(type)) {
if (value == null)
return new HibernateJsonView(JsonFormat.nice());
return new HibernateJsonView(Json.fromJson(JsonFormat.class, value));
}
if (type.startsWith("->") && type.length() > 2) {
final String myType = type.substring(1);
return new ForwardView(value) {
protected String getExt() {
return myType;
}
};
}