/** * Return the given tosca type with all related dependencies. Note if a tosca context exists it will reuse it, if not it will create a new Tosca Context * based on the dependencies of the type's archive. * * @param toscaType The tosca type from which to extract the dependencies. * @return a TypeWithDependenciesResult instance that contains the type and all related types. */ @ToscaContextual public TypeWithDependenciesResult buildTypeWithDependencies(AbstractToscaType toscaType) { if (toscaType instanceof NodeType) { return buildNodeTypeWithDependencies((NodeType) toscaType); } throw new NotImplementedException("Type not currently supported."); }