if(fsa_state == S_POLICY_ENGINE) {
if(! is_set(fsa_input_register, R_TE_CONNECTED) ) {
handle_shutdown_request(xmlNodePtr stored_msg){	/* handle here to avoid potential version issues	 *   where the shutdown message/proceedure may have	 *   been changed in later versions.	 *	 * This way the DC is always in control of the shutdown	 */		xmlNodePtr frag = NULL;	time_t now = time(NULL);	char *now_s = crm_itoa((int)now);	xmlNodePtr node_state = create_xml_node(NULL, XML_CIB_TAG_STATE);	const char *host_from= get_xml_attr(		stored_msg, NULL, XML_ATTR_HOSTFROM,  FALSE);		crm_info("Creating shutdown request for %s",host_from);	crm_xml_info(stored_msg, "stored msg");		set_uuid(node_state, XML_ATTR_UUID, host_from);	set_xml_property_copy(node_state, XML_ATTR_UNAME, host_from);	set_xml_property_copy(node_state, XML_CIB_ATTR_SHUTDOWN,  now_s);	set_xml_property_copy(		node_state, XML_CIB_ATTR_EXPSTATE, CRMD_STATE_INACTIVE);		frag = create_cib_fragment(node_state, NULL);		/* cleanup intermediate steps */	free_xml(node_state);	crm_free(now_s);	fsa_cib_conn->cmds->modify(		fsa_cib_conn, XML_CIB_TAG_STATUS, frag, NULL,		cib_sync_call);	free_xml(frag);	/* should be picked up by the TE if in anything but S_POLICY_ENGINE */	if(fsa_state == S_POLICY_ENGINE) {		return I_PE_CALC;	}	return I_NULL;}