if (serviceType != null && serviceType.equalsIgnoreCase(INSERT_GOAL_DETAILS)) {
logger.debug("Adding the details of the goal node: ");
List<GoalKpi> kpisList = new ArrayList<GoalKpi>();
JSONObject JSONGoalDetails = getAttributeAsJSONObject("goalDetails");
JSONObject goalNode = JSONGoalDetails.optJSONObject("goalNode");
Integer goalNodeId = goalNode.optInt("id");
String goalDesc = goalNode.optString("goalDesc");
String goalName = goalNode.optString("name");
logger.debug(goalNode);
GoalNode gn = new GoalNode(goalName, "", goalDesc, null, null);
gn.setId(goalNodeId);