Revert "Renaming Files having BluePrint to have Blueprint"
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / blueprint-core / src / main / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / service / BluePrintValidatorService.kt
@@ -20,9 +20,9 @@ package org.onap.ccsdk.cds.controllerblueprints.core.service
 import com.fasterxml.jackson.databind.JsonNode
 import com.google.common.base.Preconditions
 import org.apache.commons.lang3.StringUtils
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintConstants
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintException
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintTypes
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintConstants
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintTypes
 import org.onap.ccsdk.cds.controllerblueprints.core.checkNotEmpty
 import org.onap.ccsdk.cds.controllerblueprints.core.data.ArtifactDefinition
 import org.onap.ccsdk.cds.controllerblueprints.core.data.ArtifactType
@@ -51,35 +51,35 @@ import java.io.Serializable
  *
  * @author Brinda Santh
  */
-interface BlueprintValidatorService : Serializable {
+interface BluePrintValidatorService : Serializable {
 
-    @Throws(BlueprintException::class)
-    fun validateBlueprint(bluePrintContext: BlueprintContext, properties: MutableMap<String, Any>)
+    @Throws(BluePrintException::class)
+    fun validateBlueprint(bluePrintContext: BluePrintContext, properties: MutableMap<String, Any>)
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     fun validateBlueprint(serviceTemplate: ServiceTemplate, properties: MutableMap<String, Any>)
 }
 
 @Deprecated("Decomposed implementation moved to blueprint-validation module")
-open class BlueprintValidatorDefaultService : BlueprintValidatorService {
+open class BluePrintValidatorDefaultService : BluePrintValidatorService {
 
-    val log = LoggerFactory.getLogger(BlueprintValidatorDefaultService::class.toString())
+    val log = LoggerFactory.getLogger(BluePrintValidatorDefaultService::class.toString())
 
-    lateinit var bluePrintContext: BlueprintContext
+    lateinit var bluePrintContext: BluePrintContext
     lateinit var serviceTemplate: ServiceTemplate
     lateinit var properties: MutableMap<String, Any>
     var message: StringBuilder = StringBuilder()
-    private val separator: String = BlueprintConstants.PATH_DIVIDER
+    private val separator: String = BluePrintConstants.PATH_DIVIDER
     var paths: MutableList<String> = arrayListOf()
 
-    @Throws(BlueprintException::class)
-    override fun validateBlueprint(bluePrintContext: BlueprintContext, properties: MutableMap<String, Any>) {
+    @Throws(BluePrintException::class)
+    override fun validateBlueprint(bluePrintContext: BluePrintContext, properties: MutableMap<String, Any>) {
         validateBlueprint(bluePrintContext.serviceTemplate, properties)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     override fun validateBlueprint(serviceTemplate: ServiceTemplate, properties: MutableMap<String, Any>) {
-        this.bluePrintContext = BlueprintContext(serviceTemplate)
+        this.bluePrintContext = BluePrintContext(serviceTemplate)
         this.serviceTemplate = serviceTemplate
         this.properties = properties
         try {
@@ -92,21 +92,21 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         } catch (e: Exception) {
             log.error("validation failed in the path : {}", paths.joinToString(separator), e)
             log.error("validation trace message :{} ", message)
-            throw BlueprintException(
+            throw BluePrintException(
                 e,
                 format("failed to validate blueprint on path ({}) with message {}", paths.joinToString(separator), e.message)
             )
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateMetadata(metaDataMap: MutableMap<String, String>) {
         paths.add("metadata")
 
-        val templateName = metaDataMap[BlueprintConstants.METADATA_TEMPLATE_NAME]
-        val templateVersion = metaDataMap[BlueprintConstants.METADATA_TEMPLATE_VERSION]
-        val templateTags = metaDataMap[BlueprintConstants.METADATA_TEMPLATE_TAGS]
-        val templateAuthor = metaDataMap[BlueprintConstants.METADATA_TEMPLATE_AUTHOR]
+        val templateName = metaDataMap[BluePrintConstants.METADATA_TEMPLATE_NAME]
+        val templateVersion = metaDataMap[BluePrintConstants.METADATA_TEMPLATE_VERSION]
+        val templateTags = metaDataMap[BluePrintConstants.METADATA_TEMPLATE_TAGS]
+        val templateAuthor = metaDataMap[BluePrintConstants.METADATA_TEMPLATE_AUTHOR]
 
         Preconditions.checkArgument(StringUtils.isNotBlank(templateName), "failed to get template name metadata")
         Preconditions.checkArgument(StringUtils.isNotBlank(templateVersion), "failed to get template version metadata")
@@ -115,7 +115,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateArtifactTypes(artifactTypes: MutableMap<String, ArtifactType>) {
         paths.add("artifact_types")
         artifactTypes.forEach { artifactName, artifactType ->
@@ -127,7 +127,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateDataTypes(dataTypes: MutableMap<String, DataType>) {
         paths.add("dataTypes")
         dataTypes.forEach { dataTypeName, dataType ->
@@ -139,7 +139,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateNodeTypes(nodeTypes: MutableMap<String, NodeType>) {
         paths.add("nodeTypes")
         nodeTypes.forEach { nodeTypeName, nodeType ->
@@ -149,7 +149,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateNodeType(nodeTypeName: String, nodeType: NodeType) {
         paths.add(nodeTypeName)
         message.appendln("--> Node Type :" + paths.joinToString(separator))
@@ -157,9 +157,9 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         // Check Derived From
         checkValidNodeTypesDerivedFrom(nodeTypeName, derivedFrom)
 
-        if (!BlueprintTypes.rootNodeTypes().contains(derivedFrom)) {
+        if (!BluePrintTypes.rootNodeTypes().contains(derivedFrom)) {
             serviceTemplate.nodeTypes?.get(derivedFrom)
-                ?: throw BlueprintException(
+                ?: throw BluePrintException(
                     format(
                         "Failed to get derivedFrom NodeType({})'s for NodeType({}) ",
                         derivedFrom, nodeTypeName
@@ -174,14 +174,14 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun checkValidNodeTypesDerivedFrom(nodeTypeName: String, derivedFrom: String) {
-        check(BlueprintTypes.validNodeTypeDerivedFroms.contains(derivedFrom)) {
-            throw BlueprintException(format("Failed to get node type ({})'s  derivedFrom({}) definition ", nodeTypeName, derivedFrom))
+        check(BluePrintTypes.validNodeTypeDerivedFroms.contains(derivedFrom)) {
+            throw BluePrintException(format("Failed to get node type ({})'s  derivedFrom({}) definition ", nodeTypeName, derivedFrom))
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateTopologyTemplate(topologyTemplate: TopologyTemplate) {
         paths.add("topology")
         message.appendln("--> Topology Template")
@@ -191,7 +191,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateInputs(inputs: MutableMap<String, PropertyDefinition>) {
         paths.add("inputs")
         message.appendln("---> Input :" + paths.joinToString(separator))
@@ -199,7 +199,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateNodeTemplates(nodeTemplates: MutableMap<String, NodeTemplate>) {
         paths.add("nodeTemplates")
         nodeTemplates.forEach { nodeTemplateName, nodeTemplate ->
@@ -208,14 +208,14 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateNodeTemplate(nodeTemplateName: String, nodeTemplate: NodeTemplate) {
         paths.add(nodeTemplateName)
         message.appendln("---> NodeTemplate :" + paths.joinToString(separator))
         val type: String = nodeTemplate.type
 
         val nodeType: NodeType = serviceTemplate.nodeTypes?.get(type)
-            ?: throw BlueprintException(format("Failed to get NodeType({}) definition for NodeTemplate({})", type, nodeTemplateName))
+            ?: throw BluePrintException(format("Failed to get NodeType({}) definition for NodeTemplate({})", type, nodeTemplateName))
 
         nodeTemplate.artifacts?.let { validateArtifactDefinitions(nodeTemplate.artifacts!!) }
         nodeTemplate.properties?.let { validatePropertyAssignments(nodeType.properties!!, nodeTemplate.properties!!) }
@@ -225,26 +225,26 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateArtifactDefinitions(artifacts: MutableMap<String, ArtifactDefinition>) {
         paths.add("artifacts")
         artifacts.forEach { artifactDefinitionName, artifactDefinition ->
             paths.add(artifactDefinitionName)
             message.appendln("Validating artifact " + paths.joinToString(separator))
             val type: String = artifactDefinition.type
-                ?: throw BlueprintException(format("type is missing for ArtifactDefinition({})", artifactDefinitionName))
+                ?: throw BluePrintException(format("type is missing for ArtifactDefinition({})", artifactDefinitionName))
             // Check Artifact Type
             checkValidArtifactType(artifactDefinitionName, type)
 
             val file: String = artifactDefinition.file
-                ?: throw BlueprintException(format("file is missing for ArtifactDefinition({})", artifactDefinitionName))
+                ?: throw BluePrintException(format("file is missing for ArtifactDefinition({})", artifactDefinitionName))
 
             paths.removeAt(paths.lastIndex)
         }
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateWorkFlows(workflows: MutableMap<String, Workflow>) {
         paths.add("workflows")
         workflows.forEach { workflowName, workflow ->
@@ -255,7 +255,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateWorkFlow(workflowName: String, workflow: Workflow) {
         paths.add(workflowName)
         message.appendln("---> Workflow :" + paths.joinToString(separator))
@@ -271,19 +271,19 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validatePropertyDefinitions(properties: MutableMap<String, PropertyDefinition>) {
         paths.add("properties")
         properties.forEach { propertyName, propertyDefinition ->
             paths.add(propertyName)
             val dataType: String = propertyDefinition.type
             when {
-                BlueprintTypes.validPrimitiveTypes().contains(dataType) -> {
+                BluePrintTypes.validPrimitiveTypes().contains(dataType) -> {
                     // Do Nothing
                 }
-                BlueprintTypes.validCollectionTypes().contains(dataType) -> {
+                BluePrintTypes.validCollectionTypes().contains(dataType) -> {
                     val entrySchemaType: String = propertyDefinition.entrySchema?.type
-                        ?: throw BlueprintException(format("Entry schema for DataType ({}) for the property ({}) not found", dataType, propertyName))
+                        ?: throw BluePrintException(format("Entry schema for DataType ({}) for the property ({}) not found", dataType, propertyName))
                     checkPrimitiveOrComplex(entrySchemaType, propertyName)
                 }
                 else -> checkPropertyDataType(dataType, propertyName)
@@ -294,33 +294,33 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validatePropertyAssignments(
         nodeTypeProperties: MutableMap<String, PropertyDefinition>,
         properties: MutableMap<String, JsonNode>
     ) {
         properties.forEach { propertyName, propertyAssignment ->
             val propertyDefinition: PropertyDefinition = nodeTypeProperties[propertyName]
-                ?: throw BlueprintException(format("failed to get definition for the property ({})", propertyName))
+                ?: throw BluePrintException(format("failed to get definition for the property ({})", propertyName))
 
             validatePropertyAssignment(propertyName, propertyDefinition, propertyAssignment)
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validatePropertyAssignment(
         propertyName: String,
         propertyDefinition: PropertyDefinition,
         propertyAssignment: JsonNode
     ) {
         // Check and Validate if Expression Node
-        val expressionData = BlueprintExpressionService.getExpressionData(propertyAssignment)
+        val expressionData = BluePrintExpressionService.getExpressionData(propertyAssignment)
         if (!expressionData.isExpression) {
             checkPropertyValue(propertyName, propertyDefinition, propertyAssignment)
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateCapabilityAssignments(nodeType: NodeType, nodeTemplateName: String, nodeTemplate: NodeTemplate) {
         val capabilities = nodeTemplate.capabilities
         paths.add("capabilities")
@@ -328,7 +328,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             paths.add(capabilityName)
 
             val capabilityDefinition = nodeType.capabilities?.get(capabilityName)
-                ?: throw BlueprintException(
+                ?: throw BluePrintException(
                     format(
                         "Failed to get NodeTemplate({}) capability definition ({}) " +
                             "from NodeType({}) ",
@@ -343,7 +343,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateCapabilityAssignment(
         nodeTemplateName: String,
         capabilityName: String,
@@ -354,14 +354,14 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         capabilityAssignment.properties?.let { validatePropertyAssignments(capabilityDefinition.properties!!, capabilityAssignment.properties!!) }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateRequirementAssignments(nodeType: NodeType, nodeTemplateName: String, nodeTemplate: NodeTemplate) {
         val requirements = nodeTemplate.requirements
         paths.add("requirements")
         requirements?.forEach { requirementName, requirementAssignment ->
             paths.add(requirementName)
             val requirementDefinition = nodeType.requirements?.get(requirementName)
-                ?: throw BlueprintException(
+                ?: throw BluePrintException(
                     format(
                         "Failed to get NodeTemplate({}) requirement definition ({}) from" +
                             " NodeType({}) ",
@@ -375,7 +375,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateRequirementAssignment(
         nodeTemplateName: String,
         requirementAssignmentName: String,
@@ -387,8 +387,8 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         val capabilityName = requirementAssignment.capability
         val relationship = requirementAssignment.relationship!!
 
-        check(BlueprintTypes.validRelationShipDerivedFroms.contains(relationship)) {
-            throw BlueprintException(
+        check(BluePrintTypes.validRelationShipDerivedFroms.contains(relationship)) {
+            throw BluePrintException(
                 format(
                     "Failed to get relationship type ({}) for NodeTemplate({})'s requirement({}) ",
                     relationship, nodeTemplateName, requirementAssignmentName
@@ -397,7 +397,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
 
         val relationShipNodeTemplate = serviceTemplate.topologyTemplate?.nodeTemplates?.get(requirementNodeTemplateName)
-            ?: throw BlueprintException(
+            ?: throw BluePrintException(
                 format(
                     "Failed to get requirement NodeTemplate({})'s for NodeTemplate({}) requirement({}) ",
                     requirementNodeTemplateName, nodeTemplateName, requirementAssignmentName
@@ -405,7 +405,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             )
 
         relationShipNodeTemplate.capabilities?.get(capabilityName)
-            ?: throw BlueprintException(
+            ?: throw BluePrintException(
                 format(
                     "Failed to get requirement NodeTemplate({})'s capability({}) for NodeTemplate ({})'s requirement({}) ",
                     requirementNodeTemplateName, capabilityName, nodeTemplateName, requirementAssignmentName
@@ -413,7 +413,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             )
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateInterfaceAssignments(nodeType: NodeType, nodeTemplateName: String, nodeTemplate: NodeTemplate) {
 
         val interfaces = nodeTemplate.interfaces
@@ -421,7 +421,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         interfaces?.forEach { interfaceAssignmentName, interfaceAssignment ->
             paths.add(interfaceAssignmentName)
             val interfaceDefinition = nodeType.interfaces?.get(interfaceAssignmentName)
-                ?: throw BlueprintException(
+                ?: throw BluePrintException(
                     format(
                         "Failed to get NodeTemplate({}) interface definition ({}) from" +
                             " NodeType({}) ",
@@ -438,7 +438,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateInterfaceAssignment(
         nodeTemplateName: String,
         interfaceAssignmentName: String,
@@ -455,7 +455,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateInterfaceOperationsAssignment(
         nodeTemplateName: String,
         interfaceAssignmentName: String,
@@ -468,7 +468,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             it.forEach { operationAssignmentName, operationAssignments ->
 
                 val operationDefinition = interfaceDefinition.operations?.get(operationAssignmentName)
-                    ?: throw BlueprintException(
+                    ?: throw BluePrintException(
                         format(
                             "Failed to get NodeTemplate({}) operation definition ({}) ",
                             nodeTemplateName, operationAssignmentName
@@ -485,7 +485,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
 
                 inputs?.forEach { propertyName, propertyAssignment ->
                     val propertyDefinition = operationDefinition.inputs?.get(propertyName)
-                        ?: throw BlueprintException(
+                        ?: throw BluePrintException(
                             format(
                                 "Failed to get NodeTemplate({}) operation definition ({}) " +
                                     "property definition({})",
@@ -498,7 +498,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
 
                 outputs?.forEach { propertyName, propertyAssignment ->
                     val propertyDefinition = operationDefinition.outputs?.get(propertyName)
-                        ?: throw BlueprintException(
+                        ?: throw BluePrintException(
                             format(
                                 "Failed to get NodeTemplate({}) operation definition ({}) " +
                                     "output property definition({})",
@@ -513,7 +513,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateCapabilityDefinitions(nodeTypeName: String, nodeType: NodeType) {
         val capabilities = nodeType.capabilities
         paths.add("capabilities")
@@ -527,7 +527,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateCapabilityDefinition(
         nodeTypeName: String,
         nodeType: NodeType,
@@ -535,8 +535,8 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         capabilityDefinition: CapabilityDefinition
     ) {
         val capabilityType = capabilityDefinition.type
-        check(BlueprintTypes.validCapabilityTypes.contains(capabilityType)) {
-            throw BlueprintException(
+        check(BluePrintTypes.validCapabilityTypes.contains(capabilityType)) {
+            throw BluePrintException(
                 format(
                     "Failed to get CapabilityType({}) for NodeType({})",
                     capabilityType, nodeTypeName
@@ -545,7 +545,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateRequirementDefinitions(nodeName: String, nodeType: NodeType) {
         paths.add("requirements")
         val requirements = nodeType.requirements
@@ -559,7 +559,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateRequirementDefinition(
         nodeTypeName: String,
         nodeType: NodeType,
@@ -572,8 +572,8 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         val capabilityName = requirementDefinition.capability
         val relationship = requirementDefinition.relationship!!
 
-        check(BlueprintTypes.validRelationShipDerivedFroms.contains(relationship)) {
-            throw BlueprintException(
+        check(BluePrintTypes.validRelationShipDerivedFroms.contains(relationship)) {
+            throw BluePrintException(
                 format(
                     "Failed to get relationship({}) for NodeType({})'s requirement({}) ",
                     relationship, nodeTypeName, requirementDefinitionName
@@ -582,7 +582,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
 
         val relationShipNodeType = serviceTemplate.nodeTypes?.get(requirementNodeTypeName)
-            ?: throw BlueprintException(
+            ?: throw BluePrintException(
                 format(
                     "Failed to get requirement NodeType({})'s for requirement({}) ",
                     requirementNodeTypeName, requirementDefinitionName
@@ -590,7 +590,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             )
 
         relationShipNodeType.capabilities?.get(capabilityName)
-            ?: throw BlueprintException(
+            ?: throw BluePrintException(
                 format(
                     "Failed to get requirement NodeType({})'s capability({}) for NodeType ({})'s requirement({}) ",
                     requirementNodeTypeName, capabilityName, nodeTypeName, requirementDefinitionName
@@ -598,7 +598,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
             )
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateInterfaceDefinitions(interfaces: MutableMap<String, InterfaceDefinition>) {
         paths.add("interfaces")
         interfaces.forEach { interfaceName, interfaceDefinition ->
@@ -610,7 +610,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateOperationDefinitions(operations: MutableMap<String, OperationDefinition>) {
         paths.add("operations")
         operations.forEach { opertaionName, operationDefinition ->
@@ -624,38 +624,38 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         paths.removeAt(paths.lastIndex)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun validateImplementation(implementation: Implementation) {
         checkNotEmpty(implementation.primary) { "couldn't get implementation" }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun checkValidArtifactType(artifactDefinitionName: String, artifactTypeName: String) {
 
         val artifactType = serviceTemplate.artifactTypes?.get(artifactTypeName)
-            ?: throw BlueprintException("failed to artifactType($artifactTypeName) for ArtifactDefinition($artifactDefinitionName)")
+            ?: throw BluePrintException("failed to artifactType($artifactTypeName) for ArtifactDefinition($artifactDefinitionName)")
 
         checkValidArtifactTypeDerivedFrom(artifactTypeName, artifactType.derivedFrom)
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun checkValidArtifactTypeDerivedFrom(artifactTypeName: String, derivedFrom: String) {
-        check(BlueprintTypes.validArtifactTypeDerivedFroms.contains(derivedFrom)) {
-            throw BlueprintException("failed to get artifactType($artifactTypeName)'s derivedFrom($derivedFrom) definition")
+        check(BluePrintTypes.validArtifactTypeDerivedFroms.contains(derivedFrom)) {
+            throw BluePrintException("failed to get artifactType($artifactTypeName)'s derivedFrom($derivedFrom) definition")
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun checkValidDataTypeDerivedFrom(dataTypeName: String, derivedFrom: String) {
-        check(BlueprintTypes.validDataTypeDerivedFroms.contains(derivedFrom)) {
-            throw BlueprintException(format("Failed to get DataType({})'s  derivedFrom({}) definition ", dataTypeName, derivedFrom))
+        check(BluePrintTypes.validDataTypeDerivedFroms.contains(derivedFrom)) {
+            throw BluePrintException(format("Failed to get DataType({})'s  derivedFrom({}) definition ", dataTypeName, derivedFrom))
         }
     }
 
-    @Throws(BlueprintException::class)
+    @Throws(BluePrintException::class)
     open fun checkValidRelationshipTypeDerivedFrom(relationshipTypeName: String, derivedFrom: String) {
-        check(BlueprintTypes.validRelationShipDerivedFroms.contains(derivedFrom)) {
-            throw BlueprintException(format("Failed to get relationship type ({})'s  derivedFrom({}) definition ", relationshipTypeName, derivedFrom))
+        check(BluePrintTypes.validRelationShipDerivedFroms.contains(derivedFrom)) {
+            throw BluePrintException(format("Failed to get relationship type ({})'s  derivedFrom({}) definition ", relationshipTypeName, derivedFrom))
         }
     }
 
@@ -663,14 +663,14 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         val propertyType = propertyDefinition.type
         val isValid: Boolean
 
-        if (BlueprintTypes.validPrimitiveTypes().contains(propertyType)) {
+        if (BluePrintTypes.validPrimitiveTypes().contains(propertyType)) {
             isValid = JacksonUtils.checkJsonNodeValueOfPrimitiveType(propertyType, propertyAssignment)
-        } else if (BlueprintTypes.validCollectionTypes().contains(propertyType)) {
+        } else if (BluePrintTypes.validCollectionTypes().contains(propertyType)) {
 
             val entrySchemaType = propertyDefinition.entrySchema?.type
-                ?: throw BlueprintException(format("Failed to get EntrySchema type for the collection property ({})", propertyName))
+                ?: throw BluePrintException(format("Failed to get EntrySchema type for the collection property ({})", propertyName))
 
-            if (!BlueprintTypes.validPropertyTypes().contains(entrySchemaType)) {
+            if (!BluePrintTypes.validPropertyTypes().contains(entrySchemaType)) {
                 checkPropertyDataType(entrySchemaType, propertyName)
             }
             isValid = JacksonUtils.checkJsonNodeValueOfCollectionType(propertyType, propertyAssignment)
@@ -680,7 +680,7 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
         }
 
         check(isValid) {
-            throw BlueprintException(
+            throw BluePrintException(
                 format(
                     "property({}) defined of type({}) is not comptable with the value ({})",
                     propertyName, propertyType, propertyAssignment
@@ -692,16 +692,16 @@ open class BlueprintValidatorDefaultService : BlueprintValidatorService {
     private fun checkPropertyDataType(dataTypeName: String, propertyName: String) {
 
         val dataType = serviceTemplate.dataTypes?.get(dataTypeName)
-            ?: throw BlueprintException(format("DataType ({}) for the property ({}) not found", dataTypeName, propertyName))
+            ?: throw BluePrintException(format("DataType ({}) for the property ({}) not found", dataTypeName, propertyName))
 
         checkValidDataTypeDerivedFrom(propertyName, dataType.derivedFrom)
     }
 
     private fun checkPrimitiveOrComplex(dataType: String, propertyName: String): Boolean {
-        if (BlueprintTypes.validPrimitiveTypes().contains(dataType) || checkDataType(dataType)) {
+        if (BluePrintTypes.validPrimitiveTypes().contains(dataType) || checkDataType(dataType)) {
             return true
         } else {
-            throw BlueprintException(format("DataType({}) for the property({}) is not valid", dataType, propertyName))
+            throw BluePrintException(format("DataType({}) for the property({}) is not valid", dataType, propertyName))
         }
     }