protected ManifestModel toManifestModel ( Manifest [ ] manifestAnnotations , KnowledgeNamespace knowledgeNamespace ) { if ( manifestAnnotations == null || manifestAnnotations . length == 0 ) { return null ; } Manifest manifestAnnotation = manifestAnnotations [ 0 ] ; ManifestModel manifestModel = new V1ManifestModel ( knowledgeNamespace . uri ( ) ) ; Container [ ] container = manifestAnnotation . container ( ) ; if ( container != null && container . length > 0 ) { manifestModel . setContainer ( toContainerModel ( container [ 0 ] , knowledgeNamespace ) ) ; } manifestModel . setResources ( toResourcesModel ( manifestAnnotation . resources ( ) , knowledgeNamespace ) ) ; return manifestModel ; }
Converts manifest annotations to manifest model .