public static function pushTransitionsOnStack($stack, $transitions)
    {
        $returnValue = array();

        
    	foreach ($transitions as $t){
    		array_push($stack, $t);
    	}
    	
    	$returnValue = $stack;
        

        return (array) $returnValue;
    }