}
ResourceDetailModel resourceDetailModel = toResourceDetailModel(resourceAnnotation.detail(), knowledgeNamespace);
if (resourceDetailModel != null) {
resourceModel.setDetail(resourceDetailModel);
}
resourcesModel.addResource(resourceModel);
}
return resourcesModel;
}
private ResourceDetailModel toResourceDetailModel(ResourceDetail[] resourceDetailAnnotations, KnowledgeNamespace knowledgeNamespace) {