+/**\r
+ * Copyright (c) 2020 TechMahindra\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on\r
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the\r
+ * specific language governing permissions and limitations under the License.\r
+ */\r
+\r
+package org.onap.nbi.apis.serviceorder.utils;\r
+\r
+import java.util.Map;\r
+\r
+import org.onap.nbi.apis.serviceorder.model.orchestrator.ServiceOrderItemInfo;\r
+\r
+public class MacroServiceUtils {\r
+ public static boolean isMacroService(ServiceOrderItemInfo serviceOrderItemInfo) {\r
+ Map<String, Object> sdcInfos = serviceOrderItemInfo.getCatalogResponse();\r
+ boolean macroService = false;\r
+ if (sdcInfos.get("instantiationType") != null) {\r
+ String instantiationType = ((String) sdcInfos.get("instantiationType")).toLowerCase();\r
+ if (instantiationType.equals("macro")) {\r
+ macroService = true;\r
+ }\r
+ }\r
+ return macroService;\r
+}\r
+\r
+}\r