for (Class<? extends ContentSection<?>> contentSectionClass : content.contents()) {
String viewTypeName = contentSectionClass.getName().replaceAll("\\$",
".");
JClassType viewType = typeOracle.findType(viewTypeName);
if (viewType != null) {
ContentType contentType = viewType.getAnnotation(ContentType.class);
result.add(new GadgetViewType(contentType.views(), viewType));
} else {
logger.log(TreeLogger.ERROR, "Unable to find view type: "
+ viewTypeName);
throw new UnableToCompleteException();
}