CsarInstaller introduction

This class is introduced to decode/deploy the dcae blueprint from SDC
and save it to database. This is done based on json templates. Some unit
tests added

Issue-ID: CLAMP-81
Change-Id: I3fac5f7ef41d77aa244414407111b9cb602b50bd
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
diff --git a/src/main/resources/clds/templates/bpmn/tca-img.xml b/src/main/resources/clds/templates/bpmn/tca-img.xml
new file mode 100644
index 0000000..a2ec5af
--- /dev/null
+++ b/src/main/resources/clds/templates/bpmn/tca-img.xml
@@ -0,0 +1,309 @@
+<?xml version="1.0" encoding="utf-8"?><!-- created with bpmn-js / http://bpmn.io --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+		width="924" height="92" viewBox="44 134 924 92" version="1.1">
+		<defs>
+				<marker viewBox="0 0 20 20" markerWidth="10" markerHeight="10"
+						orient="auto" refX="11" refY="10" id="markerSjdype4kmnw">
+						<path d="M 1 5 L 11 10 L 1 15 Z"
+								style="stroke-width: 1; stroke-linecap: round; stroke-dasharray: 10000, 1;"
+								fill="#000000" />
+				</marker>
+				<marker viewBox="0 0 20 20" markerWidth="20" markerHeight="20"
+						orient="auto" refX="6" refY="6" id="markerSjdype4kmny">
+						<circle cx="6" cy="6" r="3.5"
+								style="stroke-width: 1; stroke-linecap: round; stroke-dasharray: 10000, 1;"
+								fill="#ffffff" stroke="#000000" />
+				</marker>
+				<marker viewBox="0 0 20 20" markerWidth="20" markerHeight="20"
+						orient="auto" refX="8.5" refY="5" id="markerSjdype4kmo0">
+						<path d="m 1 5 l 0 -3 l 7 3 l -7 3 z"
+								style="stroke-width: 1; stroke-linecap: butt; stroke-dasharray: 10000, 1;"
+								fill="#ffffff" stroke="#000000" />
+				</marker>
+				<marker viewBox="0 0 20 20" markerWidth="10" markerHeight="10"
+						orient="auto" refX="11" refY="10" id="markerSjdype4kmo2">
+						<path d="M 1 5 L 11 10 L 1 15"
+								style="stroke-width: 1; stroke-linecap: round; stroke-dasharray: 10000, 1;"
+								fill="#ffffff" stroke="#000000" />
+				</marker>
+				<marker viewBox="0 0 20 20" markerWidth="10" markerHeight="10"
+						orient="auto" refX="-1" refY="10" id="markerSjdype4kmo4">
+						<path d="M 0 10 L 8 6 L 16 10 L 8 14 Z"
+								style="stroke-width: 1; stroke-linecap: round; stroke-dasharray: 10000, 1;"
+								fill="#ffffff" stroke="#000000" />
+				</marker>
+				<marker viewBox="0 0 20 20" markerWidth="10" markerHeight="10"
+						orient="auto" refX="-5" refY="10" id="markerSjdype4kmo6">
+						<path d="M 1 4 L 5 16"
+								style="stroke-width: 1; stroke-linecap: round; stroke-dasharray: 10000, 1;"
+								fill="#000000" stroke="#000000" />
+				</marker>
+		</defs>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="StartEvent_1"
+						transform="matrix(1,0,0,1,50,162)" style="display: block;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="48"
+								height="48"></rect>
+						<g class="djs-visual">
+								<circle cx="18" cy="18" r="18" style="stroke-width: 2;"
+										stroke="#000000" fill="#ffffff"></circle>
+						</g>
+						<rect x="0" y="0" width="36" height="36"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="StartEvent_1_label"
+						transform="matrix(1,0,0,1,23,198)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="VesCollector_1g9cmz0"
+						transform="matrix(1,0,0,1,207,140)" style="display: block;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
+								height="92"></rect>
+						<g class="djs-visual">
+								<rect x="0" y="0" width="120" height="80" rx="0" ry="0"
+										style="stroke-width: 2;" stroke="#000000" fill="#ffffff"></rect>
+								<polyline points="120,80 120,20 " style="stroke-width: 2;"
+										fill="none" stroke="#000000"></polyline>
+								<polyline points="20,0 20,80 " style="stroke-width: 2;"
+										fill="none" stroke="#000000"></polyline>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;">
+										<tspan x="5" y="14">V</tspan>
+								</text>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;">
+										<tspan x="5" y="26">E</tspan>
+								</text>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;">
+										<tspan x="5" y="38">S</tspan>
+								</text>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;"
+										class=" djs-label">
+										<tspan x="25.5" y="43.5">VesCollector</tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="120" height="80"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="TCA_1d13unw"
+						transform="matrix(1,0,0,1,453,140)" style="display: block;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
+								height="92"></rect>
+						<g class="djs-visual">
+								<rect x="0" y="0" width="120" height="80" rx="0" ry="0"
+										style="stroke-width: 2;" stroke="#000000" fill="#ffffff"></rect>
+								<polyline points="0,60 120,60 " style="stroke-width: 2;"
+										fill="none" stroke="#000000"></polyline>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;"
+										class=" djs-label">
+										<tspan x="48" y="43.5">TCA</tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="120" height="80"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="Policy_12lup3h"
+						transform="matrix(1,0,0,1,687,140)" style="display: block;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="132"
+								height="92"></rect>
+						<g class="djs-visual">
+								<rect x="0" y="0" width="120" height="80" rx="0" ry="0"
+										style="stroke-width: 2;" stroke="#000000" fill="#ffffff"></rect>
+								<polyline points="0,40 60,0 " style="stroke-width: 2;"
+										fill="none" stroke="#000000"></polyline>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;"
+										class=" djs-label">
+										<tspan x="43.5" y="43.5">Policy</tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="120" height="80"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape selected" data-element-id="EndEvent_16kg9fx"
+						transform="matrix(1,0,0,1,925,162)" style="display: block;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="48"
+								height="48"></rect>
+						<g class="djs-visual">
+								<circle cx="18" cy="18" r="18" style="stroke-width: 4;"
+										stroke="#000000" fill="#ffffff"></circle>
+						</g>
+						<rect x="0" y="0" width="36" height="36"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+						<g class=" djs-resizer djs-resizer-nw" transform="matrix(1,0,0,1,0,0)">
+								<rect x="-7" y="-7" width="5" height="5" class=" djs-resizer-visual"></rect>
+								<rect x="-7" y="-7" width="20" height="20" class=" djs-resizer-hit"></rect>
+						</g>
+						<g class=" djs-resizer djs-resizer-ne" transform="matrix(0,1,-1,0,36,0)">
+								<rect x="-7" y="-7" width="5" height="5" class=" djs-resizer-visual"></rect>
+								<rect x="-7" y="-7" width="20" height="20" class=" djs-resizer-hit"></rect>
+						</g>
+						<g class=" djs-resizer djs-resizer-se" transform="matrix(-1,0,0,-1,36,36)">
+								<rect x="-7" y="-7" width="5" height="5" class=" djs-resizer-visual"></rect>
+								<rect x="-7" y="-7" width="20" height="20" class=" djs-resizer-hit"></rect>
+						</g>
+						<g class=" djs-resizer djs-resizer-sw" transform="matrix(0,-1,1,0,0,36)">
+								<rect x="-7" y="-7" width="5" height="5" class=" djs-resizer-visual"></rect>
+								<rect x="-7" y="-7" width="20" height="20" class=" djs-resizer-hit"></rect>
+						</g>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="EndEvent_16kg9fx_label"
+						transform="matrix(1,0,0,1,898,198)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-connection" data-element-id="SequenceFlow_1ahk7jg"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="80" y="174" width="133"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  86,180L207,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmnw&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="86,180 207,180 " style="stroke-opacity: 0; stroke-width: 15;"
+								fill="none" stroke="#ffffff" class="djs-hit"></polyline>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="SequenceFlow_1ahk7jg_label"
+						transform="matrix(1,0,0,1,101.5,170)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-connection" data-element-id="SequenceFlow_18ahat1"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="321" y="174" width="138"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  327,180L453,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmnw&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="327,180 453,180 " style="stroke-opacity: 0; stroke-width: 15;"
+								fill="none" stroke="#ffffff" class="djs-hit"></polyline>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="SequenceFlow_18ahat1_label"
+						transform="matrix(1,0,0,1,345,170)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-connection" data-element-id="SequenceFlow_1mo9gxb"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="567" y="174" width="126"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  573,180L687,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmnw&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="573,180 687,180 " style="stroke-opacity: 0; stroke-width: 15;"
+								fill="none" stroke="#ffffff" class="djs-hit"></polyline>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="SequenceFlow_1mo9gxb_label"
+						transform="matrix(1,0,0,1,585,170)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-connection" data-element-id="SequenceFlow_1dgtrrq"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="801" y="174" width="130"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  807,180L925,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmnw&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="807,180 925,180 " style="stroke-opacity: 0; stroke-width: 15;"
+								fill="none" stroke="#ffffff" class="djs-hit"></polyline>
+				</g>
+		</g>
+		<g class="djs-group" xmlns="http://www.w3.org/2000/svg">
+				<g class="djs-element djs-shape" data-element-id="SequenceFlow_1dgtrrq_label"
+						transform="matrix(1,0,0,1,821,170)" style="display: none;">
+						<rect fill="none" class="djs-outline" x="-6" y="-6" width="102"
+								height="32"></rect>
+						<g class="djs-visual">
+								<text style="font-family: Arial,sans-serif; font-size: 11px;"
+										class=" djs-label">
+										<tspan x="45" y="0"></tspan>
+								</text>
+						</g>
+						<rect x="0" y="0" width="90" height="20"
+								style="stroke-opacity: 0; stroke-width: 15;" fill="none" stroke="#ffffff"
+								class="djs-hit"></rect>
+				</g>
+		</g>
+</svg>
\ No newline at end of file