import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.EnableAspectJAutoProxy;
 import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.CrossOrigin;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 @Controller
 @org.springframework.context.annotation.Configuration
 @EnableAspectJAutoProxy
+@CrossOrigin(origins="*")
 public class ServiceLcmController {
 
     private static final Logger logger = LoggerFactory.getLogger(ServiceLcmController.class);
 
     }
     
        private List<String> parseServiceInstance(JSONObject objects,String customerId,String serviceType) throws JsonProcessingException{
-       ObjectMapper mapper = new ObjectMapper();
        List<String> result = new ArrayList<>();
        JSONArray serviceInstances=objects.getJSONArray("service-instance");
        for(Object serviceInstance:serviceInstances){
                                object.put("operationResult",serviceInstanceOperations.getOperationResult());
                                object.put("operationId",serviceInstanceOperations.getOperationId());
                                object.put("operationType",serviceInstanceOperations.getOperationType());
-                               if("SOTN".equals(serviceDomain)||"CCVPN".equals(serviceDomain)||"E2E Service".equals(serviceDomain)||"Network Service".equals(serviceDomain)){
-                                       List<String> parentIds = serviceLcmService.getServiceInstanceIdByParentId(serviceInstanceId);
-                                       List<String> parentServiceInstances = new ArrayList<>();
-                                       if(parentIds.size()>0){
-                                               for(String id:parentIds){
-                                                       String parentServiceInstance=this.getRelationShipData(customerId, serviceType, id);
-                                                       parentServiceInstances.add(parentServiceInstance);
-                                               }
-                                       }
-                                       object.put("childServiceInstances",parentServiceInstances);
-                                       result.add(object.toString());
-                               }
+                               result.add(object.toString());
        }
        return result;
     }