{
JSONObject metaElement = elementsMetaData.optJSONObject(i);
if (!metaElement.has("_type"))
{
throw new CruxGeneratorException("Crux Meta Data contains an invalid meta element (without type attribute). View ID["+view.getId()+"]. "
+ "Validate your view file.");
}
if (isValidWidget(metaElement))
{
try
{
String type = getMetaElementType(metaElement);
createWidget(printer, metaElement, type);
}
catch (Throwable e)
{
throw new CruxGeneratorException("Error Creating widget. See Log for more detail.", e);
}
}
}
printer.println("if ("+LogConfiguration.class.getCanonicalName()+".loggingIsEnabled()){");