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/test/resources/clds/templates/bpmn/holmes-img.xml b/src/test/resources/clds/templates/bpmn/holmes-img.xml
new file mode 100644
index 0000000..f84b6a1
--- /dev/null
+++ b/src/test/resources/clds/templates/bpmn/holmes-img.xml
@@ -0,0 +1,315 @@
+<?xml version="1.0" encoding="utf-8"?>
+\n<!-- created with bpmn-js / http://bpmn.io -->
+\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+\n
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+		width="900" height="92" viewBox="44 134 900 92" version="1.1">
+		<defs>
+				<marker viewBox="0 0 20 20" markerWidth="10" markerHeight="10"
+						orient="auto" refX="11" refY="10" id="markerSjdype4kmbu">
+						<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="markerSjdype4kmbw">
+						<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="markerSjdype4kmby">
+						<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="markerSjdype4kmc0">
+						<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="markerSjdype4kmc2">
+						<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="markerSjdype4kmc4">
+						<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="Holmes_0bsv00m"
+						transform="matrix(1,0,0,1,438,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>
+								<circle cx="15" cy="15" r="10" style="stroke-width: 1;"
+										stroke="#000000" fill="#ffffff"></circle>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;">
+										<tspan x="11" y="20">H</tspan>
+								</text>
+								<text style="font-family: Arial,sans-serif; font-size: 12px;"
+										class=" djs-label">
+										<tspan x="39" y="43.5">Holmes</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="VesCollector_1ljyqg8"
+						transform="matrix(1,0,0,1,213,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="Policy_114xo8j"
+						transform="matrix(1,0,0,1,678,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_0b4m6bk"
+						transform="matrix(1,0,0,1,901,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_0b4m6bk_label"
+						transform="matrix(1,0,0,1,874,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_1c9hzec"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="80" y="174" width="139"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  86,180L213,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmbu&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="86,180 213,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_1c9hzec_label"
+						transform="matrix(1,0,0,1,104.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_1ig3gix"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="327" y="174" width="117"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  333,180L438,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmbu&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="333,180 438,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_1ig3gix_label"
+						transform="matrix(1,0,0,1,340.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_0zwbn2r"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="552" y="174" width="132"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  558,180L678,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmbu&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="558,180 678,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_0zwbn2r_label"
+						transform="matrix(1,0,0,1,573,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_0ox6r95"
+						style="display: block;">
+						<rect fill="none" class="djs-outline" x="792" y="174" width="115"
+								height="12"></rect>
+						<g class="djs-visual">
+								<path d="m  798,180L901,180 "
+										style="stroke-width: 2; stroke-linejoin: round; marker-end: url(&quot;#markerSjdype4kmbu&quot;);"
+										fill="none" stroke="#000000"></path>
+						</g>
+						<polyline points="798,180 901,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_0ox6r95_label"
+						transform="matrix(1,0,0,1,804.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>
+</svg>
\ No newline at end of file